@semiont/backend 0.5.2 → 0.5.4
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 +327 -159
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +280 -144
- package/package.json +5 -5
package/dist/openapi.json
CHANGED
|
@@ -256,10 +256,10 @@
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
|
-
"/api/tokens/
|
|
259
|
+
"/api/tokens/agent": {
|
|
260
260
|
"post": {
|
|
261
|
-
"summary": "
|
|
262
|
-
"description": "Exchange
|
|
261
|
+
"summary": "Software-Agent Token Exchange",
|
|
262
|
+
"description": "Exchange the shared secret plus an inference (provider, model) pair for a bearer JWT issued for that agent identity. Used by worker processes that emit on behalf of one or more software peers.\n\nThe issued JWT carries the agent's DID (shape `did:web:<host>:agents:<provider>:<model>`); the bus stamps that DID onto `_userId` so events the agent emits attribute to the agent rather than to a generic worker pool.",
|
|
263
263
|
"tags": [
|
|
264
264
|
"Authentication"
|
|
265
265
|
],
|
|
@@ -273,11 +273,21 @@
|
|
|
273
273
|
"properties": {
|
|
274
274
|
"secret": {
|
|
275
275
|
"type": "string",
|
|
276
|
-
"description": "The shared
|
|
276
|
+
"description": "The shared secret (SEMIONT_WORKER_SECRET)"
|
|
277
|
+
},
|
|
278
|
+
"provider": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "Inference provider (e.g. ollama, anthropic)"
|
|
281
|
+
},
|
|
282
|
+
"model": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "Model identifier (e.g. gemma2:27b, claude-3-5-sonnet)"
|
|
277
285
|
}
|
|
278
286
|
},
|
|
279
287
|
"required": [
|
|
280
|
-
"secret"
|
|
288
|
+
"secret",
|
|
289
|
+
"provider",
|
|
290
|
+
"model"
|
|
281
291
|
]
|
|
282
292
|
}
|
|
283
293
|
}
|
|
@@ -294,17 +304,32 @@
|
|
|
294
304
|
"token": {
|
|
295
305
|
"type": "string",
|
|
296
306
|
"description": "Bearer JWT for subsequent authenticated requests"
|
|
307
|
+
},
|
|
308
|
+
"did": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"description": "DID of the software-agent identity the token is acting as"
|
|
297
311
|
}
|
|
298
312
|
},
|
|
299
313
|
"required": [
|
|
300
|
-
"token"
|
|
314
|
+
"token",
|
|
315
|
+
"did"
|
|
301
316
|
]
|
|
302
317
|
}
|
|
303
318
|
}
|
|
304
319
|
}
|
|
305
320
|
},
|
|
321
|
+
"400": {
|
|
322
|
+
"description": "Missing or invalid request fields",
|
|
323
|
+
"content": {
|
|
324
|
+
"application/json": {
|
|
325
|
+
"schema": {
|
|
326
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
306
331
|
"401": {
|
|
307
|
-
"description": "Invalid
|
|
332
|
+
"description": "Invalid agent secret",
|
|
308
333
|
"content": {
|
|
309
334
|
"application/json": {
|
|
310
335
|
"schema": {
|
|
@@ -314,7 +339,7 @@
|
|
|
314
339
|
}
|
|
315
340
|
},
|
|
316
341
|
"503": {
|
|
317
|
-
"description": "
|
|
342
|
+
"description": "Agent authentication not configured",
|
|
318
343
|
"content": {
|
|
319
344
|
"application/json": {
|
|
320
345
|
"schema": {
|
|
@@ -1386,10 +1411,6 @@
|
|
|
1386
1411
|
"type": "string",
|
|
1387
1412
|
"description": "JSON-stringified array of entity type names"
|
|
1388
1413
|
},
|
|
1389
|
-
"creationMethod": {
|
|
1390
|
-
"type": "string",
|
|
1391
|
-
"description": "How this resource was created (api, ui, upload, reference, cli, clone, generated)"
|
|
1392
|
-
},
|
|
1393
1414
|
"sourceAnnotationId": {
|
|
1394
1415
|
"type": "string",
|
|
1395
1416
|
"description": "For AI-generated resources: the annotation that triggered generation. Nested into generatedFrom.annotationId on the persisted event."
|
|
@@ -1870,48 +1891,103 @@
|
|
|
1870
1891
|
]
|
|
1871
1892
|
},
|
|
1872
1893
|
"Agent": {
|
|
1873
|
-
"
|
|
1874
|
-
"
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
"
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1894
|
+
"description": "Web Annotation / W3C PROV Agent. Discriminated by @type — Person, Organization, or Software. Each branch carries fields appropriate to its kind. Software peers are first-class participants, not a sub-class of Person.",
|
|
1895
|
+
"oneOf": [
|
|
1896
|
+
{
|
|
1897
|
+
"type": "object",
|
|
1898
|
+
"additionalProperties": true,
|
|
1899
|
+
"properties": {
|
|
1900
|
+
"@type": {
|
|
1901
|
+
"type": "string",
|
|
1902
|
+
"const": "Person"
|
|
1903
|
+
},
|
|
1904
|
+
"@id": {
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"format": "uri",
|
|
1907
|
+
"description": "DID-shaped identifier (e.g. did:web:host:users:email%40host)"
|
|
1908
|
+
},
|
|
1909
|
+
"name": {
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"description": "Display name"
|
|
1912
|
+
},
|
|
1913
|
+
"nickname": {
|
|
1886
1914
|
"type": "string"
|
|
1887
1915
|
},
|
|
1888
|
-
{
|
|
1889
|
-
"type": "
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1916
|
+
"email": {
|
|
1917
|
+
"type": "string"
|
|
1918
|
+
},
|
|
1919
|
+
"email_sha1": {
|
|
1920
|
+
"type": "string"
|
|
1921
|
+
},
|
|
1922
|
+
"homepage": {
|
|
1923
|
+
"type": "string"
|
|
1894
1924
|
}
|
|
1925
|
+
},
|
|
1926
|
+
"required": [
|
|
1927
|
+
"@type",
|
|
1928
|
+
"name"
|
|
1895
1929
|
]
|
|
1896
1930
|
},
|
|
1897
|
-
|
|
1898
|
-
"type": "
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1931
|
+
{
|
|
1932
|
+
"type": "object",
|
|
1933
|
+
"additionalProperties": true,
|
|
1934
|
+
"properties": {
|
|
1935
|
+
"@type": {
|
|
1936
|
+
"type": "string",
|
|
1937
|
+
"const": "Organization"
|
|
1938
|
+
},
|
|
1939
|
+
"@id": {
|
|
1940
|
+
"type": "string",
|
|
1941
|
+
"format": "uri"
|
|
1942
|
+
},
|
|
1943
|
+
"name": {
|
|
1944
|
+
"type": "string"
|
|
1945
|
+
},
|
|
1946
|
+
"homepage": {
|
|
1947
|
+
"type": "string"
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
"required": [
|
|
1951
|
+
"@type",
|
|
1952
|
+
"name"
|
|
1953
|
+
]
|
|
1908
1954
|
},
|
|
1909
|
-
|
|
1910
|
-
"type": "
|
|
1955
|
+
{
|
|
1956
|
+
"type": "object",
|
|
1957
|
+
"additionalProperties": true,
|
|
1958
|
+
"properties": {
|
|
1959
|
+
"@type": {
|
|
1960
|
+
"type": "string",
|
|
1961
|
+
"const": "Software"
|
|
1962
|
+
},
|
|
1963
|
+
"@id": {
|
|
1964
|
+
"type": "string",
|
|
1965
|
+
"format": "uri",
|
|
1966
|
+
"description": "DID-shaped identifier (e.g. did:web:host:agents:provider:model)"
|
|
1967
|
+
},
|
|
1968
|
+
"name": {
|
|
1969
|
+
"type": "string",
|
|
1970
|
+
"description": "Stable human-friendly label. Not parsed; UI composes display from structured fields."
|
|
1971
|
+
},
|
|
1972
|
+
"provider": {
|
|
1973
|
+
"type": "string",
|
|
1974
|
+
"description": "Inference provider (e.g. ollama, anthropic)"
|
|
1975
|
+
},
|
|
1976
|
+
"model": {
|
|
1977
|
+
"type": "string",
|
|
1978
|
+
"description": "Model identifier (e.g. gemma2:27b, claude-3-5-sonnet)"
|
|
1979
|
+
},
|
|
1980
|
+
"parameters": {
|
|
1981
|
+
"type": "object",
|
|
1982
|
+
"additionalProperties": true,
|
|
1983
|
+
"description": "Inference parameters (temperature, maxTokens, systemPrompt, etc.). Runtime metadata, not part of identity."
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
"required": [
|
|
1987
|
+
"@type",
|
|
1988
|
+
"name"
|
|
1989
|
+
]
|
|
1911
1990
|
}
|
|
1912
|
-
},
|
|
1913
|
-
"required": [
|
|
1914
|
-
"name"
|
|
1915
1991
|
]
|
|
1916
1992
|
},
|
|
1917
1993
|
"Annotation": {
|
|
@@ -1969,7 +2045,8 @@
|
|
|
1969
2045
|
"description": "W3C Web Annotation body. Optional per the W3C spec — annotations whose motivation alone is meaningful (highlighting) legitimately omit it. Present values are either a single body or a non-empty array of bodies; the prior empty-array 'stub' branch has been removed (it was a naming lie shared between highlights and never-actually-emitted stub references, and the source of the #651 reference-annotation validator bug)."
|
|
1970
2046
|
},
|
|
1971
2047
|
"creator": {
|
|
1972
|
-
"$ref": "#/components/schemas/Agent"
|
|
2048
|
+
"$ref": "#/components/schemas/Agent",
|
|
2049
|
+
"description": "Web Annotation creator — the entity that initiated the annotation. For human-driven work this is a Person; for autonomous-agent work this is a Software peer."
|
|
1973
2050
|
},
|
|
1974
2051
|
"created": {
|
|
1975
2052
|
"type": "string"
|
|
@@ -1978,7 +2055,34 @@
|
|
|
1978
2055
|
"type": "string"
|
|
1979
2056
|
},
|
|
1980
2057
|
"generator": {
|
|
1981
|
-
"
|
|
2058
|
+
"oneOf": [
|
|
2059
|
+
{
|
|
2060
|
+
"$ref": "#/components/schemas/Agent"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"type": "array",
|
|
2064
|
+
"items": {
|
|
2065
|
+
"$ref": "#/components/schemas/Agent"
|
|
2066
|
+
},
|
|
2067
|
+
"minItems": 1
|
|
2068
|
+
}
|
|
2069
|
+
],
|
|
2070
|
+
"description": "Web Annotation generator — the SoftwareAgent that produced the annotation, when software was involved. Absent for purely manual annotations. Single object is the common case; array supports pipelines that combine multiple software peers."
|
|
2071
|
+
},
|
|
2072
|
+
"wasAttributedTo": {
|
|
2073
|
+
"oneOf": [
|
|
2074
|
+
{
|
|
2075
|
+
"$ref": "#/components/schemas/Agent"
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"type": "array",
|
|
2079
|
+
"items": {
|
|
2080
|
+
"$ref": "#/components/schemas/Agent"
|
|
2081
|
+
},
|
|
2082
|
+
"minItems": 1
|
|
2083
|
+
}
|
|
2084
|
+
],
|
|
2085
|
+
"description": "PROV-O wasAttributedTo — all parties responsible for this annotation. For human-prompted AI work this combines `creator` (the Person) and `generator` (the Software). For purely manual annotations it equals `[creator]`; for autonomous-agent work it equals `[generator]` (and `creator` may be the same Software)."
|
|
1982
2086
|
}
|
|
1983
2087
|
},
|
|
1984
2088
|
"required": [
|
|
@@ -3063,18 +3167,6 @@
|
|
|
3063
3167
|
"contentByteSize": {
|
|
3064
3168
|
"type": "integer"
|
|
3065
3169
|
},
|
|
3066
|
-
"creationMethod": {
|
|
3067
|
-
"type": "string",
|
|
3068
|
-
"enum": [
|
|
3069
|
-
"api",
|
|
3070
|
-
"upload",
|
|
3071
|
-
"ui",
|
|
3072
|
-
"reference",
|
|
3073
|
-
"cli",
|
|
3074
|
-
"clone",
|
|
3075
|
-
"generated"
|
|
3076
|
-
]
|
|
3077
|
-
},
|
|
3078
3170
|
"entityTypes": {
|
|
3079
3171
|
"type": "array",
|
|
3080
3172
|
"items": {
|
|
@@ -3126,8 +3218,7 @@
|
|
|
3126
3218
|
"required": [
|
|
3127
3219
|
"name",
|
|
3128
3220
|
"format",
|
|
3129
|
-
"contentChecksum"
|
|
3130
|
-
"creationMethod"
|
|
3221
|
+
"contentChecksum"
|
|
3131
3222
|
]
|
|
3132
3223
|
},
|
|
3133
3224
|
"ResourceClonedPayload": {
|
|
@@ -3149,18 +3240,6 @@
|
|
|
3149
3240
|
"parentResourceId": {
|
|
3150
3241
|
"type": "string"
|
|
3151
3242
|
},
|
|
3152
|
-
"creationMethod": {
|
|
3153
|
-
"type": "string",
|
|
3154
|
-
"enum": [
|
|
3155
|
-
"api",
|
|
3156
|
-
"upload",
|
|
3157
|
-
"ui",
|
|
3158
|
-
"reference",
|
|
3159
|
-
"cli",
|
|
3160
|
-
"clone",
|
|
3161
|
-
"generated"
|
|
3162
|
-
]
|
|
3163
|
-
},
|
|
3164
3243
|
"entityTypes": {
|
|
3165
3244
|
"type": "array",
|
|
3166
3245
|
"items": {
|
|
@@ -3175,8 +3254,7 @@
|
|
|
3175
3254
|
"name",
|
|
3176
3255
|
"format",
|
|
3177
3256
|
"contentChecksum",
|
|
3178
|
-
"parentResourceId"
|
|
3179
|
-
"creationMethod"
|
|
3257
|
+
"parentResourceId"
|
|
3180
3258
|
]
|
|
3181
3259
|
},
|
|
3182
3260
|
"ResourceUpdatedPayload": {
|
|
@@ -3320,6 +3398,18 @@
|
|
|
3320
3398
|
"entityType"
|
|
3321
3399
|
]
|
|
3322
3400
|
},
|
|
3401
|
+
"TagSchemaAddedPayload": {
|
|
3402
|
+
"type": "object",
|
|
3403
|
+
"description": "Payload for frame:tag-schema-added domain event (system-level, no resourceId — fan-out is global to the KB).",
|
|
3404
|
+
"properties": {
|
|
3405
|
+
"schema": {
|
|
3406
|
+
"$ref": "#/components/schemas/TagSchema"
|
|
3407
|
+
}
|
|
3408
|
+
},
|
|
3409
|
+
"required": [
|
|
3410
|
+
"schema"
|
|
3411
|
+
]
|
|
3412
|
+
},
|
|
3323
3413
|
"EntityTagChangedPayload": {
|
|
3324
3414
|
"type": "object",
|
|
3325
3415
|
"description": "Payload for mark:entity-tag-added and mark:entity-tag-removed domain events",
|
|
@@ -3730,6 +3820,20 @@
|
|
|
3730
3820
|
"entityReferences"
|
|
3731
3821
|
]
|
|
3732
3822
|
},
|
|
3823
|
+
"GetTagSchemasResponse": {
|
|
3824
|
+
"type": "object",
|
|
3825
|
+
"properties": {
|
|
3826
|
+
"tagSchemas": {
|
|
3827
|
+
"type": "array",
|
|
3828
|
+
"items": {
|
|
3829
|
+
"$ref": "#/components/schemas/TagSchema"
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
},
|
|
3833
|
+
"required": [
|
|
3834
|
+
"tagSchemas"
|
|
3835
|
+
]
|
|
3836
|
+
},
|
|
3733
3837
|
"GoogleAuthRequest": {
|
|
3734
3838
|
"type": "object",
|
|
3735
3839
|
"properties": {
|
|
@@ -4290,19 +4394,6 @@
|
|
|
4290
4394
|
"type": "boolean",
|
|
4291
4395
|
"description": "Application-specific: Whether this resource is a draft"
|
|
4292
4396
|
},
|
|
4293
|
-
"creationMethod": {
|
|
4294
|
-
"type": "string",
|
|
4295
|
-
"enum": [
|
|
4296
|
-
"api",
|
|
4297
|
-
"upload",
|
|
4298
|
-
"ui",
|
|
4299
|
-
"reference",
|
|
4300
|
-
"cli",
|
|
4301
|
-
"clone",
|
|
4302
|
-
"generated"
|
|
4303
|
-
],
|
|
4304
|
-
"description": "Application-specific: How this resource was created"
|
|
4305
|
-
},
|
|
4306
4397
|
"sourceAnnotationId": {
|
|
4307
4398
|
"type": "string",
|
|
4308
4399
|
"description": "Application-specific: ID of annotation that triggered generation"
|
|
@@ -5494,6 +5585,34 @@
|
|
|
5494
5585
|
"path"
|
|
5495
5586
|
]
|
|
5496
5587
|
},
|
|
5588
|
+
"BrowseTagSchemasRequest": {
|
|
5589
|
+
"type": "object",
|
|
5590
|
+
"description": "Request to browse registered tag schemas",
|
|
5591
|
+
"properties": {
|
|
5592
|
+
"correlationId": {
|
|
5593
|
+
"type": "string"
|
|
5594
|
+
}
|
|
5595
|
+
},
|
|
5596
|
+
"required": [
|
|
5597
|
+
"correlationId"
|
|
5598
|
+
]
|
|
5599
|
+
},
|
|
5600
|
+
"BrowseTagSchemasResult": {
|
|
5601
|
+
"type": "object",
|
|
5602
|
+
"description": "Result of browsing tag schemas",
|
|
5603
|
+
"properties": {
|
|
5604
|
+
"correlationId": {
|
|
5605
|
+
"type": "string"
|
|
5606
|
+
},
|
|
5607
|
+
"response": {
|
|
5608
|
+
"$ref": "#/components/schemas/GetTagSchemasResponse"
|
|
5609
|
+
}
|
|
5610
|
+
},
|
|
5611
|
+
"required": [
|
|
5612
|
+
"correlationId",
|
|
5613
|
+
"response"
|
|
5614
|
+
]
|
|
5615
|
+
},
|
|
5497
5616
|
"FragmentSelector": {
|
|
5498
5617
|
"type": "object",
|
|
5499
5618
|
"description": "W3C Web Annotation FragmentSelector for media fragment identifiers (RFC 3778 for PDFs)",
|
|
@@ -6354,6 +6473,22 @@
|
|
|
6354
6473
|
"tag"
|
|
6355
6474
|
]
|
|
6356
6475
|
},
|
|
6476
|
+
"FrameAddTagSchemaCommand": {
|
|
6477
|
+
"type": "object",
|
|
6478
|
+
"description": "Bus command to register a tag schema with the KB's runtime registry. Carried on the `frame:add-tag-schema` channel — 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.",
|
|
6479
|
+
"properties": {
|
|
6480
|
+
"schema": {
|
|
6481
|
+
"$ref": "#/components/schemas/TagSchema"
|
|
6482
|
+
},
|
|
6483
|
+
"_userId": {
|
|
6484
|
+
"type": "string",
|
|
6485
|
+
"description": "Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this."
|
|
6486
|
+
}
|
|
6487
|
+
},
|
|
6488
|
+
"required": [
|
|
6489
|
+
"schema"
|
|
6490
|
+
]
|
|
6491
|
+
},
|
|
6357
6492
|
"MarkArchiveCommand": {
|
|
6358
6493
|
"type": "object",
|
|
6359
6494
|
"description": "Bus command to archive a resource and optionally remove its file.",
|
|
@@ -6890,6 +7025,61 @@
|
|
|
6890
7025
|
"value"
|
|
6891
7026
|
]
|
|
6892
7027
|
},
|
|
7028
|
+
"TagCategory": {
|
|
7029
|
+
"type": "object",
|
|
7030
|
+
"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.",
|
|
7031
|
+
"properties": {
|
|
7032
|
+
"name": {
|
|
7033
|
+
"type": "string"
|
|
7034
|
+
},
|
|
7035
|
+
"description": {
|
|
7036
|
+
"type": "string"
|
|
7037
|
+
},
|
|
7038
|
+
"examples": {
|
|
7039
|
+
"type": "array",
|
|
7040
|
+
"items": {
|
|
7041
|
+
"type": "string"
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
},
|
|
7045
|
+
"required": [
|
|
7046
|
+
"name",
|
|
7047
|
+
"description",
|
|
7048
|
+
"examples"
|
|
7049
|
+
]
|
|
7050
|
+
},
|
|
7051
|
+
"TagSchema": {
|
|
7052
|
+
"type": "object",
|
|
7053
|
+
"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.",
|
|
7054
|
+
"properties": {
|
|
7055
|
+
"id": {
|
|
7056
|
+
"type": "string"
|
|
7057
|
+
},
|
|
7058
|
+
"name": {
|
|
7059
|
+
"type": "string"
|
|
7060
|
+
},
|
|
7061
|
+
"description": {
|
|
7062
|
+
"type": "string"
|
|
7063
|
+
},
|
|
7064
|
+
"domain": {
|
|
7065
|
+
"type": "string",
|
|
7066
|
+
"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."
|
|
7067
|
+
},
|
|
7068
|
+
"tags": {
|
|
7069
|
+
"type": "array",
|
|
7070
|
+
"items": {
|
|
7071
|
+
"$ref": "#/components/schemas/TagCategory"
|
|
7072
|
+
}
|
|
7073
|
+
}
|
|
7074
|
+
},
|
|
7075
|
+
"required": [
|
|
7076
|
+
"id",
|
|
7077
|
+
"name",
|
|
7078
|
+
"description",
|
|
7079
|
+
"domain",
|
|
7080
|
+
"tags"
|
|
7081
|
+
]
|
|
7082
|
+
},
|
|
6893
7083
|
"YieldCloneCreateCommand": {
|
|
6894
7084
|
"type": "object",
|
|
6895
7085
|
"description": "Bus command to create a cloned resource from a clone token.",
|
|
@@ -7006,9 +7196,6 @@
|
|
|
7006
7196
|
"type": "string"
|
|
7007
7197
|
}
|
|
7008
7198
|
},
|
|
7009
|
-
"creationMethod": {
|
|
7010
|
-
"type": "string"
|
|
7011
|
-
},
|
|
7012
7199
|
"isDraft": {
|
|
7013
7200
|
"type": "boolean"
|
|
7014
7201
|
},
|
|
@@ -7102,57 +7289,6 @@
|
|
|
7102
7289
|
"toUri"
|
|
7103
7290
|
]
|
|
7104
7291
|
},
|
|
7105
|
-
"YieldRequestCommand": {
|
|
7106
|
-
"type": "object",
|
|
7107
|
-
"description": "Bus command to request yield (generation) of a new resource from an annotation.",
|
|
7108
|
-
"properties": {
|
|
7109
|
-
"correlationId": {
|
|
7110
|
-
"type": "string",
|
|
7111
|
-
"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."
|
|
7112
|
-
},
|
|
7113
|
-
"annotationId": {
|
|
7114
|
-
"type": "string"
|
|
7115
|
-
},
|
|
7116
|
-
"resourceId": {
|
|
7117
|
-
"type": "string"
|
|
7118
|
-
},
|
|
7119
|
-
"options": {
|
|
7120
|
-
"type": "object",
|
|
7121
|
-
"properties": {
|
|
7122
|
-
"title": {
|
|
7123
|
-
"type": "string"
|
|
7124
|
-
},
|
|
7125
|
-
"prompt": {
|
|
7126
|
-
"type": "string"
|
|
7127
|
-
},
|
|
7128
|
-
"language": {
|
|
7129
|
-
"type": "string"
|
|
7130
|
-
},
|
|
7131
|
-
"temperature": {
|
|
7132
|
-
"type": "number"
|
|
7133
|
-
},
|
|
7134
|
-
"maxTokens": {
|
|
7135
|
-
"type": "integer"
|
|
7136
|
-
},
|
|
7137
|
-
"context": {
|
|
7138
|
-
"$ref": "#/components/schemas/GatheredContext"
|
|
7139
|
-
},
|
|
7140
|
-
"storageUri": {
|
|
7141
|
-
"type": "string"
|
|
7142
|
-
}
|
|
7143
|
-
},
|
|
7144
|
-
"required": [
|
|
7145
|
-
"title",
|
|
7146
|
-
"storageUri"
|
|
7147
|
-
]
|
|
7148
|
-
}
|
|
7149
|
-
},
|
|
7150
|
-
"required": [
|
|
7151
|
-
"annotationId",
|
|
7152
|
-
"resourceId",
|
|
7153
|
-
"options"
|
|
7154
|
-
]
|
|
7155
|
-
},
|
|
7156
7292
|
"YieldUpdateCommand": {
|
|
7157
7293
|
"type": "object",
|
|
7158
7294
|
"description": "Bus command to update a yielded resource's storage content.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semiont/backend",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Semiont backend server - pre-built for npm consumption",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"@hono/swagger-ui": "^0.6.1",
|
|
21
21
|
"@prisma/adapter-pg": "^7.5.0",
|
|
22
22
|
"@prisma/client": "^7.5.0",
|
|
23
|
-
"@semiont/core": "^0.5.
|
|
24
|
-
"@semiont/event-sourcing": "^0.5.
|
|
25
|
-
"@semiont/jobs": "^0.5.
|
|
26
|
-
"@semiont/make-meaning": "^0.5.
|
|
23
|
+
"@semiont/core": "^0.5.4",
|
|
24
|
+
"@semiont/event-sourcing": "^0.5.4",
|
|
25
|
+
"@semiont/jobs": "^0.5.4",
|
|
26
|
+
"@semiont/make-meaning": "^0.5.4",
|
|
27
27
|
"ajv": "^8.17.1",
|
|
28
28
|
"ajv-formats": "^3.0.1",
|
|
29
29
|
"argon2": "^0.44.0",
|