@lssm/example.versioned-knowledge-base 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804
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/.turbo/turbo-build$colon$bundle.log +35 -0
- package/.turbo/turbo-build.log +26 -14
- package/CHANGELOG.md +3 -27
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/kb.d.ts +266 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/versioned-knowledge-base.docblock.d.ts +1 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/models.d.ts +138 -0
- package/dist/events.d.ts +62 -0
- package/dist/example.d.ts +35 -0
- package/dist/handlers/index.d.ts +2 -0
- package/dist/handlers/memory.handlers.d.ts +77 -0
- package/dist/index.d.ts +9 -0
- package/dist/versioned-knowledge-base.feature.d.ts +6 -0
- package/package.json +17 -17
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mtsdown[0m
|
|
3
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
|
+
[34mℹ[39m config file: [4m/Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/versioned-knowledge-base/tsdown.config.js[24m (unrun)
|
|
5
|
+
[34mℹ[39m entry: [34msrc/events.ts, src/example.ts, src/index.ts, src/versioned-knowledge-base.feature.ts, src/contracts/index.ts, src/contracts/kb.ts, src/docs/index.ts, src/docs/versioned-knowledge-base.docblock.ts, src/handlers/index.ts, src/handlers/memory.handlers.ts, src/entities/index.ts, src/entities/models.ts[39m
|
|
6
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
7
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
8
|
+
[34mℹ[39m Build start
|
|
9
|
+
[34mℹ[39m Cleaning 28 files
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mcontracts/kb.js[22m [2m4.36 kB[22m [2m│ gzip: 1.33 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mhandlers/memory.handlers.js[22m [2m2.16 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mentities/models.js[22m [2m2.13 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mevents.js[22m [2m1.72 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/versioned-knowledge-base.docblock.js[22m [2m1.28 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.23 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mversioned-knowledge-base.feature.js[22m [2m0.81 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.61 kB[22m [2m│ gzip: 0.36 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mcontracts/index.js[22m [2m0.33 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m [2m0.24 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[1mhandlers/index.js[22m [2m0.15 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.05 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcontracts/kb.d.ts[22m[39m [2m7.09 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mentities/models.d.ts[22m[39m [2m3.54 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[32m[1mevents.d.ts[22m[39m [2m1.91 kB[22m [2m│ gzip: 0.36 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/memory.handlers.d.ts[22m[39m [2m1.90 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m1.17 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.09 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcontracts/index.d.ts[22m[39m [2m0.29 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22m[32m[1mversioned-knowledge-base.feature.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22m[32m[1mentities/index.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/index.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/versioned-knowledge-base.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
34
|
+
[34mℹ[39m 24 files, total: 32.71 kB
|
|
35
|
+
[32m✔[39m Build complete in [32m5717ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,18 +8,30 @@
|
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
10
|
[34mℹ[39m Cleaning 16 files
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mcontracts/kb.js[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mhandlers/memory.handlers.js[22m
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[1mentities/models.js[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[1mevents.js[22m
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[1mdocs/versioned-knowledge-base.docblock.js[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[1mindex.js[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22m[1mversioned-knowledge-base.feature.js[22m
|
|
18
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m
|
|
19
|
-
[34mℹ[39m [2mdist/[22m[1mcontracts/index.js[22m
|
|
20
|
-
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m
|
|
21
|
-
[34mℹ[39m [2mdist/[22m[1mhandlers/index.js[22m
|
|
22
|
-
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m
|
|
23
|
-
[34mℹ[39m
|
|
24
|
-
[32m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mcontracts/kb.js[22m [2m4.36 kB[22m [2m│ gzip: 1.33 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mhandlers/memory.handlers.js[22m [2m2.16 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mentities/models.js[22m [2m2.13 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mevents.js[22m [2m1.72 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/versioned-knowledge-base.docblock.js[22m [2m1.28 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.23 kB[22m [2m│ gzip: 0.43 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mversioned-knowledge-base.feature.js[22m [2m0.81 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.61 kB[22m [2m│ gzip: 0.36 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[1mcontracts/index.js[22m [2m0.33 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m [2m0.24 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[1mhandlers/index.js[22m [2m0.15 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.05 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcontracts/kb.d.ts[22m[39m [2m7.09 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[32m[1mentities/models.d.ts[22m[39m [2m3.54 kB[22m [2m│ gzip: 0.49 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22m[32m[1mevents.d.ts[22m[39m [2m1.91 kB[22m [2m│ gzip: 0.36 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/memory.handlers.d.ts[22m[39m [2m1.90 kB[22m [2m│ gzip: 0.59 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m1.17 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.09 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcontracts/index.d.ts[22m[39m [2m0.29 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22m[32m[1mversioned-knowledge-base.feature.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22m[32m[1mentities/index.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/index.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
34
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/versioned-knowledge-base.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
35
|
+
[34mℹ[39m 24 files, total: 32.71 kB
|
|
36
|
+
[32m✔[39m Build complete in [32m8636ms[39m
|
|
25
37
|
[0m[2m[35m$[0m [2m[1mtsc --noEmit[0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lssm/example.versioned-knowledge-base
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251217060804
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -9,29 +9,5 @@
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- Updated dependencies [66a5dfd]
|
|
12
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
13
|
-
- @lssm/lib.schema@0.0.0-canary-
|
|
14
|
-
|
|
15
|
-
## 1.42.0
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 66a5dfd: initial release
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- Updated dependencies [66a5dfd]
|
|
24
|
-
- @lssm/lib.contracts@1.42.0
|
|
25
|
-
- @lssm/lib.schema@1.42.0
|
|
26
|
-
|
|
27
|
-
## 0.0.0-canary-20251217053014
|
|
28
|
-
|
|
29
|
-
### Minor Changes
|
|
30
|
-
|
|
31
|
-
- 66a5dfd: initial release
|
|
32
|
-
|
|
33
|
-
### Patch Changes
|
|
34
|
-
|
|
35
|
-
- Updated dependencies [66a5dfd]
|
|
36
|
-
- @lssm/lib.contracts@0.0.0-canary-20251217053014
|
|
37
|
-
- @lssm/lib.schema@0.0.0-canary-20251217053014
|
|
12
|
+
- @lssm/lib.contracts@0.0.0-canary-20251217060804
|
|
13
|
+
- @lssm/lib.schema@0.0.0-canary-20251217060804
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { KbApproveRuleVersionContract, KbIngestSourceContract, KbPublishSnapshotContract, KbSearchContract, KbUpsertRuleVersionContract } from "./kb.js";
|
|
2
|
+
export { KbApproveRuleVersionContract, KbIngestSourceContract, KbPublishSnapshotContract, KbSearchContract, KbUpsertRuleVersionContract };
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema50 from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/kb.d.ts
|
|
5
|
+
declare const KbIngestSourceContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
6
|
+
jurisdiction: {
|
|
7
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
authority: {
|
|
11
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
fetchedAt: {
|
|
19
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
20
|
+
isOptional: false;
|
|
21
|
+
};
|
|
22
|
+
hash: {
|
|
23
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
24
|
+
isOptional: false;
|
|
25
|
+
};
|
|
26
|
+
fileId: {
|
|
27
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
28
|
+
isOptional: false;
|
|
29
|
+
};
|
|
30
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
31
|
+
id: {
|
|
32
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
33
|
+
isOptional: false;
|
|
34
|
+
};
|
|
35
|
+
jurisdiction: {
|
|
36
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
37
|
+
isOptional: false;
|
|
38
|
+
};
|
|
39
|
+
authority: {
|
|
40
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
41
|
+
isOptional: false;
|
|
42
|
+
};
|
|
43
|
+
title: {
|
|
44
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
45
|
+
isOptional: false;
|
|
46
|
+
};
|
|
47
|
+
fetchedAt: {
|
|
48
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
49
|
+
isOptional: false;
|
|
50
|
+
};
|
|
51
|
+
hash: {
|
|
52
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
53
|
+
isOptional: false;
|
|
54
|
+
};
|
|
55
|
+
fileId: {
|
|
56
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
57
|
+
isOptional: false;
|
|
58
|
+
};
|
|
59
|
+
}>, undefined>;
|
|
60
|
+
declare const KbUpsertRuleVersionContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
61
|
+
ruleId: {
|
|
62
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
63
|
+
isOptional: false;
|
|
64
|
+
};
|
|
65
|
+
content: {
|
|
66
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
67
|
+
isOptional: false;
|
|
68
|
+
};
|
|
69
|
+
sourceRefs: {
|
|
70
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
71
|
+
sourceDocumentId: {
|
|
72
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
75
|
+
excerpt: {
|
|
76
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
77
|
+
isOptional: true;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
isArray: true;
|
|
81
|
+
isOptional: false;
|
|
82
|
+
};
|
|
83
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
84
|
+
id: {
|
|
85
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
ruleId: {
|
|
89
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
90
|
+
isOptional: false;
|
|
91
|
+
};
|
|
92
|
+
jurisdiction: {
|
|
93
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
94
|
+
isOptional: false;
|
|
95
|
+
};
|
|
96
|
+
topicKey: {
|
|
97
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
99
|
+
};
|
|
100
|
+
version: {
|
|
101
|
+
type: _lssm_lib_schema50.FieldType<number, number>;
|
|
102
|
+
isOptional: false;
|
|
103
|
+
};
|
|
104
|
+
content: {
|
|
105
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
106
|
+
isOptional: false;
|
|
107
|
+
};
|
|
108
|
+
sourceRefs: {
|
|
109
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
110
|
+
sourceDocumentId: {
|
|
111
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
112
|
+
isOptional: false;
|
|
113
|
+
};
|
|
114
|
+
excerpt: {
|
|
115
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
116
|
+
isOptional: true;
|
|
117
|
+
};
|
|
118
|
+
}>;
|
|
119
|
+
isArray: true;
|
|
120
|
+
isOptional: false;
|
|
121
|
+
};
|
|
122
|
+
status: {
|
|
123
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
124
|
+
isOptional: false;
|
|
125
|
+
};
|
|
126
|
+
approvedBy: {
|
|
127
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
128
|
+
isOptional: true;
|
|
129
|
+
};
|
|
130
|
+
approvedAt: {
|
|
131
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
132
|
+
isOptional: true;
|
|
133
|
+
};
|
|
134
|
+
createdAt: {
|
|
135
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
136
|
+
isOptional: false;
|
|
137
|
+
};
|
|
138
|
+
}>, undefined>;
|
|
139
|
+
declare const KbApproveRuleVersionContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
140
|
+
ruleVersionId: {
|
|
141
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
142
|
+
isOptional: false;
|
|
143
|
+
};
|
|
144
|
+
approver: {
|
|
145
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
146
|
+
isOptional: false;
|
|
147
|
+
};
|
|
148
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
149
|
+
id: {
|
|
150
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
151
|
+
isOptional: false;
|
|
152
|
+
};
|
|
153
|
+
ruleId: {
|
|
154
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
155
|
+
isOptional: false;
|
|
156
|
+
};
|
|
157
|
+
jurisdiction: {
|
|
158
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
159
|
+
isOptional: false;
|
|
160
|
+
};
|
|
161
|
+
topicKey: {
|
|
162
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
163
|
+
isOptional: false;
|
|
164
|
+
};
|
|
165
|
+
version: {
|
|
166
|
+
type: _lssm_lib_schema50.FieldType<number, number>;
|
|
167
|
+
isOptional: false;
|
|
168
|
+
};
|
|
169
|
+
content: {
|
|
170
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
171
|
+
isOptional: false;
|
|
172
|
+
};
|
|
173
|
+
sourceRefs: {
|
|
174
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
175
|
+
sourceDocumentId: {
|
|
176
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
177
|
+
isOptional: false;
|
|
178
|
+
};
|
|
179
|
+
excerpt: {
|
|
180
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
181
|
+
isOptional: true;
|
|
182
|
+
};
|
|
183
|
+
}>;
|
|
184
|
+
isArray: true;
|
|
185
|
+
isOptional: false;
|
|
186
|
+
};
|
|
187
|
+
status: {
|
|
188
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
189
|
+
isOptional: false;
|
|
190
|
+
};
|
|
191
|
+
approvedBy: {
|
|
192
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
193
|
+
isOptional: true;
|
|
194
|
+
};
|
|
195
|
+
approvedAt: {
|
|
196
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
197
|
+
isOptional: true;
|
|
198
|
+
};
|
|
199
|
+
createdAt: {
|
|
200
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
201
|
+
isOptional: false;
|
|
202
|
+
};
|
|
203
|
+
}>, undefined>;
|
|
204
|
+
declare const KbPublishSnapshotContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
205
|
+
jurisdiction: {
|
|
206
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
207
|
+
isOptional: false;
|
|
208
|
+
};
|
|
209
|
+
asOfDate: {
|
|
210
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
211
|
+
isOptional: false;
|
|
212
|
+
};
|
|
213
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
214
|
+
id: {
|
|
215
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
216
|
+
isOptional: false;
|
|
217
|
+
};
|
|
218
|
+
jurisdiction: {
|
|
219
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
220
|
+
isOptional: false;
|
|
221
|
+
};
|
|
222
|
+
asOfDate: {
|
|
223
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
224
|
+
isOptional: false;
|
|
225
|
+
};
|
|
226
|
+
includedRuleVersionIds: {
|
|
227
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
228
|
+
isArray: true;
|
|
229
|
+
isOptional: false;
|
|
230
|
+
};
|
|
231
|
+
publishedAt: {
|
|
232
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
233
|
+
isOptional: false;
|
|
234
|
+
};
|
|
235
|
+
}>, undefined>;
|
|
236
|
+
declare const KbSearchContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
237
|
+
snapshotId: {
|
|
238
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
239
|
+
isOptional: false;
|
|
240
|
+
};
|
|
241
|
+
jurisdiction: {
|
|
242
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
243
|
+
isOptional: false;
|
|
244
|
+
};
|
|
245
|
+
query: {
|
|
246
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
247
|
+
isOptional: false;
|
|
248
|
+
};
|
|
249
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
250
|
+
items: {
|
|
251
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
252
|
+
ruleVersionId: {
|
|
253
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
254
|
+
isOptional: false;
|
|
255
|
+
};
|
|
256
|
+
excerpt: {
|
|
257
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
258
|
+
isOptional: true;
|
|
259
|
+
};
|
|
260
|
+
}>;
|
|
261
|
+
isArray: true;
|
|
262
|
+
isOptional: false;
|
|
263
|
+
};
|
|
264
|
+
}>, undefined>;
|
|
265
|
+
//#endregion
|
|
266
|
+
export { KbApproveRuleVersionContract, KbIngestSourceContract, KbPublishSnapshotContract, KbSearchContract, KbUpsertRuleVersionContract };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as _lssm_lib_schema15 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/models.d.ts
|
|
4
|
+
declare const SourceDocumentModel: _lssm_lib_schema15.SchemaModel<{
|
|
5
|
+
id: {
|
|
6
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
8
|
+
};
|
|
9
|
+
jurisdiction: {
|
|
10
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
authority: {
|
|
14
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
fetchedAt: {
|
|
22
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
hash: {
|
|
26
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
27
|
+
isOptional: false;
|
|
28
|
+
};
|
|
29
|
+
fileId: {
|
|
30
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
31
|
+
isOptional: false;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
declare const SourceRefModel: _lssm_lib_schema15.SchemaModel<{
|
|
35
|
+
sourceDocumentId: {
|
|
36
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
37
|
+
isOptional: false;
|
|
38
|
+
};
|
|
39
|
+
excerpt: {
|
|
40
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
41
|
+
isOptional: true;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
declare const RuleModel: _lssm_lib_schema15.SchemaModel<{
|
|
45
|
+
id: {
|
|
46
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
jurisdiction: {
|
|
50
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
topicKey: {
|
|
54
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
declare const RuleVersionModel: _lssm_lib_schema15.SchemaModel<{
|
|
59
|
+
id: {
|
|
60
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
61
|
+
isOptional: false;
|
|
62
|
+
};
|
|
63
|
+
ruleId: {
|
|
64
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
65
|
+
isOptional: false;
|
|
66
|
+
};
|
|
67
|
+
jurisdiction: {
|
|
68
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
70
|
+
};
|
|
71
|
+
topicKey: {
|
|
72
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
75
|
+
version: {
|
|
76
|
+
type: _lssm_lib_schema15.FieldType<number, number>;
|
|
77
|
+
isOptional: false;
|
|
78
|
+
};
|
|
79
|
+
content: {
|
|
80
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
81
|
+
isOptional: false;
|
|
82
|
+
};
|
|
83
|
+
sourceRefs: {
|
|
84
|
+
type: _lssm_lib_schema15.SchemaModel<{
|
|
85
|
+
sourceDocumentId: {
|
|
86
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
87
|
+
isOptional: false;
|
|
88
|
+
};
|
|
89
|
+
excerpt: {
|
|
90
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
91
|
+
isOptional: true;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
isArray: true;
|
|
95
|
+
isOptional: false;
|
|
96
|
+
};
|
|
97
|
+
status: {
|
|
98
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
99
|
+
isOptional: false;
|
|
100
|
+
};
|
|
101
|
+
approvedBy: {
|
|
102
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
103
|
+
isOptional: true;
|
|
104
|
+
};
|
|
105
|
+
approvedAt: {
|
|
106
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
107
|
+
isOptional: true;
|
|
108
|
+
};
|
|
109
|
+
createdAt: {
|
|
110
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
111
|
+
isOptional: false;
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
declare const KBSnapshotModel: _lssm_lib_schema15.SchemaModel<{
|
|
115
|
+
id: {
|
|
116
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
jurisdiction: {
|
|
120
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
};
|
|
123
|
+
asOfDate: {
|
|
124
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
125
|
+
isOptional: false;
|
|
126
|
+
};
|
|
127
|
+
includedRuleVersionIds: {
|
|
128
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
129
|
+
isArray: true;
|
|
130
|
+
isOptional: false;
|
|
131
|
+
};
|
|
132
|
+
publishedAt: {
|
|
133
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
134
|
+
isOptional: false;
|
|
135
|
+
};
|
|
136
|
+
}>;
|
|
137
|
+
//#endregion
|
|
138
|
+
export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
2
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/events.d.ts
|
|
5
|
+
declare const KbSourceIngestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
6
|
+
sourceDocumentId: {
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
|
+
isOptional: false;
|
|
9
|
+
};
|
|
10
|
+
jurisdiction: {
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
|
+
isOptional: false;
|
|
13
|
+
};
|
|
14
|
+
hash: {
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
16
|
+
isOptional: false;
|
|
17
|
+
};
|
|
18
|
+
}>>;
|
|
19
|
+
declare const KbRuleVersionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
20
|
+
ruleVersionId: {
|
|
21
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
ruleId: {
|
|
25
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
jurisdiction: {
|
|
29
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
}>>;
|
|
37
|
+
declare const KbRuleVersionApprovedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
38
|
+
ruleVersionId: {
|
|
39
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
40
|
+
isOptional: false;
|
|
41
|
+
};
|
|
42
|
+
approver: {
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
45
|
+
};
|
|
46
|
+
}>>;
|
|
47
|
+
declare const KbSnapshotPublishedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
48
|
+
snapshotId: {
|
|
49
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
50
|
+
isOptional: false;
|
|
51
|
+
};
|
|
52
|
+
jurisdiction: {
|
|
53
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
54
|
+
isOptional: false;
|
|
55
|
+
};
|
|
56
|
+
includedRuleVersionsCount: {
|
|
57
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
58
|
+
isOptional: false;
|
|
59
|
+
};
|
|
60
|
+
}>>;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "versioned-knowledge-base";
|
|
4
|
+
readonly title: "Versioned Knowledge Base";
|
|
5
|
+
readonly summary: "Curated KB with immutable sources, reviewable rule versions, and published snapshots.";
|
|
6
|
+
readonly tags: readonly ["knowledge", "versioning", "snapshots"];
|
|
7
|
+
readonly kind: "knowledge";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly rootDocId: "docs.examples.versioned-knowledge-base";
|
|
11
|
+
};
|
|
12
|
+
readonly entrypoints: {
|
|
13
|
+
readonly packageName: "@lssm/example.versioned-knowledge-base";
|
|
14
|
+
readonly feature: "./feature";
|
|
15
|
+
readonly contracts: "./contracts";
|
|
16
|
+
readonly handlers: "./handlers";
|
|
17
|
+
readonly docs: "./docs";
|
|
18
|
+
};
|
|
19
|
+
readonly surfaces: {
|
|
20
|
+
readonly templates: true;
|
|
21
|
+
readonly sandbox: {
|
|
22
|
+
readonly enabled: true;
|
|
23
|
+
readonly modes: readonly ["markdown", "specs", "builder"];
|
|
24
|
+
};
|
|
25
|
+
readonly studio: {
|
|
26
|
+
readonly enabled: true;
|
|
27
|
+
readonly installable: true;
|
|
28
|
+
};
|
|
29
|
+
readonly mcp: {
|
|
30
|
+
readonly enabled: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { example as default };
|