@lssm/example.versioned-knowledge-base 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821
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 +279 -226
- package/.turbo/turbo-build.log +280 -37
- package/CHANGELOG.md +3 -3
- package/LICENSE +21 -0
- package/dist/contracts/kb.d.ts +73 -72
- package/dist/contracts/kb.d.ts.map +1 -0
- package/dist/contracts/kb.js +27 -28
- package/dist/contracts/kb.js.map +1 -0
- package/dist/docs/versioned-knowledge-base.docblock.js +2 -1
- package/dist/docs/versioned-knowledge-base.docblock.js.map +1 -0
- package/dist/entities/models.d.ts +38 -37
- package/dist/entities/models.d.ts.map +1 -0
- package/dist/entities/models.js +35 -36
- package/dist/entities/models.js.map +1 -0
- package/dist/events.d.ts +20 -19
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +20 -20
- package/dist/events.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/handlers/memory.handlers.d.ts +2 -1
- package/dist/handlers/memory.handlers.d.ts.map +1 -0
- package/dist/handlers/memory.handlers.js +2 -1
- package/dist/handlers/memory.handlers.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +3 -2
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3874 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4684 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/versioned-knowledge-base.feature.d.ts +2 -1
- package/dist/versioned-knowledge-base.feature.d.ts.map +1 -0
- package/dist/versioned-knowledge-base.feature.js +2 -1
- package/dist/versioned-knowledge-base.feature.js.map +1 -0
- package/package.json +14 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -2
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema15 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/models.d.ts
|
|
4
|
-
declare const SourceDocumentModel:
|
|
4
|
+
declare const SourceDocumentModel: _lssm_lib_schema15.SchemaModel<{
|
|
5
5
|
id: {
|
|
6
|
-
type:
|
|
6
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
8
8
|
};
|
|
9
9
|
jurisdiction: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
authority: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
title: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
fetchedAt: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
hash: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
fileId: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
}>;
|
|
34
|
-
declare const SourceRefModel:
|
|
34
|
+
declare const SourceRefModel: _lssm_lib_schema15.SchemaModel<{
|
|
35
35
|
sourceDocumentId: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
excerpt: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
41
41
|
isOptional: true;
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
|
-
declare const RuleModel:
|
|
44
|
+
declare const RuleModel: _lssm_lib_schema15.SchemaModel<{
|
|
45
45
|
id: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
jurisdiction: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
topicKey: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
|
-
declare const RuleVersionModel:
|
|
58
|
+
declare const RuleVersionModel: _lssm_lib_schema15.SchemaModel<{
|
|
59
59
|
id: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
ruleId: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
jurisdiction: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
topicKey: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
version: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema15.FieldType<number, number>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
content: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
sourceRefs: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema15.SchemaModel<{
|
|
85
85
|
sourceDocumentId: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
excerpt: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
91
91
|
isOptional: true;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
@@ -95,44 +95,45 @@ declare const RuleVersionModel: _lssm_lib_schema84.SchemaModel<{
|
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
status: {
|
|
98
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
99
99
|
isOptional: false;
|
|
100
100
|
};
|
|
101
101
|
approvedBy: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
103
103
|
isOptional: true;
|
|
104
104
|
};
|
|
105
105
|
approvedAt: {
|
|
106
|
-
type:
|
|
106
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
107
107
|
isOptional: true;
|
|
108
108
|
};
|
|
109
109
|
createdAt: {
|
|
110
|
-
type:
|
|
110
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
111
111
|
isOptional: false;
|
|
112
112
|
};
|
|
113
113
|
}>;
|
|
114
|
-
declare const KBSnapshotModel:
|
|
114
|
+
declare const KBSnapshotModel: _lssm_lib_schema15.SchemaModel<{
|
|
115
115
|
id: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
jurisdiction: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
asOfDate: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
includedRuleVersionIds: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema15.FieldType<string, string>;
|
|
129
129
|
isArray: true;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
publishedAt: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema15.FieldType<Date, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
}>;
|
|
137
137
|
//#endregion
|
|
138
|
-
export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
|
|
138
|
+
export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
|
|
139
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","names":[],"sources":["../../src/entities/models.ts"],"sourcesContent":[],"mappings":";;;cAEa,wCAAmB;;UAa9B,kBAAA,CAAA;IAbW,UAAA,EAAA,KAAA;EAaX,CAAA;;;;;;;;;EAb8B,KAAA,EAAA;IAenB,IAAA,8BAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;IAVyB,IAAA,8BAAA,KAAA,EAAA,MAAA,CAAA;IAYd,UASX,EAAA,KAAA;EAAA,CAAA;;;gBAToB,KAAA;EAAA,CAAA;EAWT,MAAA,EAAA;IAiBX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;cAxCW,mCAAc;;UAUzB,kBAAA,CAAA;;;;;;;;cAEW,8BAAS;;IAWO,IAAA,EAF3B,kBAAA,CAAA,SAE2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAmBhB,UAAA,EAAA,KAeX;EAAA,CAAA;;;;;;;gBAf0B,KAAA;EAAA,CAAA;;cAnBf,qCAAgB;;UAiB3B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,oCAAe;;UAe1B,kBAAA,CAAA"}
|
package/dist/entities/models.js
CHANGED
|
@@ -1,100 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
-
import "../libs/schema/dist/index.js";
|
|
1
|
+
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
4
2
|
|
|
5
3
|
//#region src/entities/models.ts
|
|
6
|
-
const SourceDocumentModel =
|
|
4
|
+
const SourceDocumentModel = K5({
|
|
7
5
|
name: "SourceDocument",
|
|
8
6
|
description: "Immutable raw source document metadata referencing a stored file.",
|
|
9
7
|
fields: {
|
|
10
8
|
id: {
|
|
11
|
-
type:
|
|
9
|
+
type: E5.String_unsecure(),
|
|
12
10
|
isOptional: false
|
|
13
11
|
},
|
|
14
12
|
jurisdiction: {
|
|
15
|
-
type:
|
|
13
|
+
type: E5.String_unsecure(),
|
|
16
14
|
isOptional: false
|
|
17
15
|
},
|
|
18
16
|
authority: {
|
|
19
|
-
type:
|
|
17
|
+
type: E5.String_unsecure(),
|
|
20
18
|
isOptional: false
|
|
21
19
|
},
|
|
22
20
|
title: {
|
|
23
|
-
type:
|
|
21
|
+
type: E5.String_unsecure(),
|
|
24
22
|
isOptional: false
|
|
25
23
|
},
|
|
26
24
|
fetchedAt: {
|
|
27
|
-
type:
|
|
25
|
+
type: E5.DateTime(),
|
|
28
26
|
isOptional: false
|
|
29
27
|
},
|
|
30
28
|
hash: {
|
|
31
|
-
type:
|
|
29
|
+
type: E5.String_unsecure(),
|
|
32
30
|
isOptional: false
|
|
33
31
|
},
|
|
34
32
|
fileId: {
|
|
35
|
-
type:
|
|
33
|
+
type: E5.String_unsecure(),
|
|
36
34
|
isOptional: false
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
37
|
});
|
|
40
|
-
const SourceRefModel =
|
|
38
|
+
const SourceRefModel = K5({
|
|
41
39
|
name: "SourceRef",
|
|
42
40
|
description: "Reference to a source document used to justify a rule version.",
|
|
43
41
|
fields: {
|
|
44
42
|
sourceDocumentId: {
|
|
45
|
-
type:
|
|
43
|
+
type: E5.String_unsecure(),
|
|
46
44
|
isOptional: false
|
|
47
45
|
},
|
|
48
46
|
excerpt: {
|
|
49
|
-
type:
|
|
47
|
+
type: E5.String_unsecure(),
|
|
50
48
|
isOptional: true
|
|
51
49
|
}
|
|
52
50
|
}
|
|
53
51
|
});
|
|
54
|
-
const RuleModel =
|
|
52
|
+
const RuleModel = K5({
|
|
55
53
|
name: "Rule",
|
|
56
54
|
description: "Curated rule (stable identity) with topic + jurisdiction scope.",
|
|
57
55
|
fields: {
|
|
58
56
|
id: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.String_unsecure(),
|
|
60
58
|
isOptional: false
|
|
61
59
|
},
|
|
62
60
|
jurisdiction: {
|
|
63
|
-
type:
|
|
61
|
+
type: E5.String_unsecure(),
|
|
64
62
|
isOptional: false
|
|
65
63
|
},
|
|
66
64
|
topicKey: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.String_unsecure(),
|
|
68
66
|
isOptional: false
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
});
|
|
72
|
-
const RuleVersionModel =
|
|
70
|
+
const RuleVersionModel = K5({
|
|
73
71
|
name: "RuleVersion",
|
|
74
72
|
description: "A versioned rule content with source references and approval status.",
|
|
75
73
|
fields: {
|
|
76
74
|
id: {
|
|
77
|
-
type:
|
|
75
|
+
type: E5.String_unsecure(),
|
|
78
76
|
isOptional: false
|
|
79
77
|
},
|
|
80
78
|
ruleId: {
|
|
81
|
-
type:
|
|
79
|
+
type: E5.String_unsecure(),
|
|
82
80
|
isOptional: false
|
|
83
81
|
},
|
|
84
82
|
jurisdiction: {
|
|
85
|
-
type:
|
|
83
|
+
type: E5.String_unsecure(),
|
|
86
84
|
isOptional: false
|
|
87
85
|
},
|
|
88
86
|
topicKey: {
|
|
89
|
-
type:
|
|
87
|
+
type: E5.String_unsecure(),
|
|
90
88
|
isOptional: false
|
|
91
89
|
},
|
|
92
90
|
version: {
|
|
93
|
-
type:
|
|
91
|
+
type: E5.Int_unsecure(),
|
|
94
92
|
isOptional: false
|
|
95
93
|
},
|
|
96
94
|
content: {
|
|
97
|
-
type:
|
|
95
|
+
type: E5.String_unsecure(),
|
|
98
96
|
isOptional: false
|
|
99
97
|
},
|
|
100
98
|
sourceRefs: {
|
|
@@ -103,50 +101,51 @@ const RuleVersionModel = defineSchemaModel({
|
|
|
103
101
|
isOptional: false
|
|
104
102
|
},
|
|
105
103
|
status: {
|
|
106
|
-
type:
|
|
104
|
+
type: E5.String_unsecure(),
|
|
107
105
|
isOptional: false
|
|
108
106
|
},
|
|
109
107
|
approvedBy: {
|
|
110
|
-
type:
|
|
108
|
+
type: E5.String_unsecure(),
|
|
111
109
|
isOptional: true
|
|
112
110
|
},
|
|
113
111
|
approvedAt: {
|
|
114
|
-
type:
|
|
112
|
+
type: E5.DateTime(),
|
|
115
113
|
isOptional: true
|
|
116
114
|
},
|
|
117
115
|
createdAt: {
|
|
118
|
-
type:
|
|
116
|
+
type: E5.DateTime(),
|
|
119
117
|
isOptional: false
|
|
120
118
|
}
|
|
121
119
|
}
|
|
122
120
|
});
|
|
123
|
-
const KBSnapshotModel =
|
|
121
|
+
const KBSnapshotModel = K5({
|
|
124
122
|
name: "KBSnapshot",
|
|
125
123
|
description: "Published KB snapshot (as-of) referencing approved rule versions.",
|
|
126
124
|
fields: {
|
|
127
125
|
id: {
|
|
128
|
-
type:
|
|
126
|
+
type: E5.String_unsecure(),
|
|
129
127
|
isOptional: false
|
|
130
128
|
},
|
|
131
129
|
jurisdiction: {
|
|
132
|
-
type:
|
|
130
|
+
type: E5.String_unsecure(),
|
|
133
131
|
isOptional: false
|
|
134
132
|
},
|
|
135
133
|
asOfDate: {
|
|
136
|
-
type:
|
|
134
|
+
type: E5.DateTime(),
|
|
137
135
|
isOptional: false
|
|
138
136
|
},
|
|
139
137
|
includedRuleVersionIds: {
|
|
140
|
-
type:
|
|
138
|
+
type: E5.String_unsecure(),
|
|
141
139
|
isArray: true,
|
|
142
140
|
isOptional: false
|
|
143
141
|
},
|
|
144
142
|
publishedAt: {
|
|
145
|
-
type:
|
|
143
|
+
type: E5.DateTime(),
|
|
146
144
|
isOptional: false
|
|
147
145
|
}
|
|
148
146
|
}
|
|
149
147
|
});
|
|
150
148
|
|
|
151
149
|
//#endregion
|
|
152
|
-
export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
|
|
150
|
+
export { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel };
|
|
151
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/entities/models.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\n\nexport const SourceDocumentModel = defineSchemaModel({\n name: 'SourceDocument',\n description:\n 'Immutable raw source document metadata referencing a stored file.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n authority: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fetchedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n hash: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const SourceRefModel = defineSchemaModel({\n name: 'SourceRef',\n description: 'Reference to a source document used to justify a rule version.',\n fields: {\n sourceDocumentId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n excerpt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const RuleModel = defineSchemaModel({\n name: 'Rule',\n description:\n 'Curated rule (stable identity) with topic + jurisdiction scope.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n topicKey: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const RuleVersionModel = defineSchemaModel({\n name: 'RuleVersion',\n description:\n 'A versioned rule content with source references and approval status.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n ruleId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n topicKey: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n sourceRefs: { type: SourceRefModel, isArray: true, isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }, // draft|approved|rejected\n approvedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n approvedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const KBSnapshotModel = defineSchemaModel({\n name: 'KBSnapshot',\n description:\n 'Published KB snapshot (as-of) referencing approved rule versions.',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n asOfDate: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n includedRuleVersionIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n publishedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n"],"mappings":";;;AAEA,MAAa,sBAAsBA,GAAkB;CACnD,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,WAAW;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACjE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE;CACF,CAAC;AAEF,MAAa,iBAAiBD,GAAkB;CAC9C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,kBAAkB;GAChB,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACtE;CACF,CAAC;AAEF,MAAa,YAAYD,GAAkB;CACzC,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE;CACF,CAAC;AAEF,MAAa,mBAAmBD,GAAkB;CAChD,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,SAAS;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACnE,SAAS;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,YAAY;GAAE,MAAM;GAAgB,SAAS;GAAM,YAAY;GAAO;EACtE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,YAAY;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACxE,YAAY;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EACjE,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,kBAAkBD,GAAkB;CAC/C,MAAM;CACN,aACE;CACF,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAChE,wBAAwB;GACtB,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,aAAa;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EACpE;CACF,CAAC"}
|
package/dist/events.d.ts
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const KbSourceIngestedEvent:
|
|
5
|
+
declare const KbSourceIngestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
6
6
|
sourceDocumentId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
jurisdiction: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
hash: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
}>>;
|
|
19
|
-
declare const KbRuleVersionCreatedEvent:
|
|
19
|
+
declare const KbRuleVersionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
20
20
|
ruleVersionId: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
ruleId: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
jurisdiction: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
status: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
}>>;
|
|
37
|
-
declare const KbRuleVersionApprovedEvent:
|
|
37
|
+
declare const KbRuleVersionApprovedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
38
38
|
ruleVersionId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
approver: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
}>>;
|
|
47
|
-
declare const KbSnapshotPublishedEvent:
|
|
47
|
+
declare const KbSnapshotPublishedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
|
48
48
|
snapshotId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
jurisdiction: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
includedRuleVersionsCount: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
|
|
62
|
+
export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
|
|
63
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAgBa,uBAAqB,oBAAA,CAAA,4BAAA;;UAKhC,iBAAA,CAAA;;EALW,CAAA;EAKX,YAAA,EAAA;;;;EALgC,IAAA,EAAA;IAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqBrB,UAAA,EAAA,KAAA;EAKX,CAAA;;cALW,2BAAyB,oBAAA,CAAA,4BAAA;;UAKpC,iBAAA,CAAA,SALoC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAmBzB,MAAA,EAAA;IAKX,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;EALqC,YAAA,EAAA;IAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAoB1B,UAAA,EAAA,KAAA;EAKX,CAAA;;;gBALmC,KAAA;EAAA,CAAA;CAAA,CAAA,CAAA;cApBxB,4BAA0B,oBAAA,CAAA,4BAAA;;UAKrC,iBAAA,CAAA;;;;;;;;cAeW,0BAAwB,oBAAA,CAAA,4BAAA;;UAKnC,iBAAA,CAAA"}
|
package/dist/events.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K5 } from "./libs/contracts/dist/schema/dist/index.js";
|
|
2
2
|
import { defineEvent } from "./libs/contracts/dist/events.js";
|
|
3
3
|
import "./libs/contracts/dist/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import "./libs/schema/dist/index.js";
|
|
4
|
+
import { E5 } from "./libs/schema/dist/index.js";
|
|
6
5
|
|
|
7
6
|
//#region src/events.ts
|
|
8
|
-
const KbSourceIngestedPayload =
|
|
7
|
+
const KbSourceIngestedPayload = K5({
|
|
9
8
|
name: "KbSourceIngestedPayload",
|
|
10
9
|
description: "Emitted when a source document is ingested.",
|
|
11
10
|
fields: {
|
|
12
11
|
sourceDocumentId: {
|
|
13
|
-
type:
|
|
12
|
+
type: E5.String_unsecure(),
|
|
14
13
|
isOptional: false
|
|
15
14
|
},
|
|
16
15
|
jurisdiction: {
|
|
17
|
-
type:
|
|
16
|
+
type: E5.String_unsecure(),
|
|
18
17
|
isOptional: false
|
|
19
18
|
},
|
|
20
19
|
hash: {
|
|
21
|
-
type:
|
|
20
|
+
type: E5.String_unsecure(),
|
|
22
21
|
isOptional: false
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -29,24 +28,24 @@ const KbSourceIngestedEvent = defineEvent({
|
|
|
29
28
|
description: "Source document ingested (immutable).",
|
|
30
29
|
payload: KbSourceIngestedPayload
|
|
31
30
|
});
|
|
32
|
-
const KbRuleVersionCreatedPayload =
|
|
31
|
+
const KbRuleVersionCreatedPayload = K5({
|
|
33
32
|
name: "KbRuleVersionCreatedPayload",
|
|
34
33
|
description: "Emitted when a rule version draft is created.",
|
|
35
34
|
fields: {
|
|
36
35
|
ruleVersionId: {
|
|
37
|
-
type:
|
|
36
|
+
type: E5.String_unsecure(),
|
|
38
37
|
isOptional: false
|
|
39
38
|
},
|
|
40
39
|
ruleId: {
|
|
41
|
-
type:
|
|
40
|
+
type: E5.String_unsecure(),
|
|
42
41
|
isOptional: false
|
|
43
42
|
},
|
|
44
43
|
jurisdiction: {
|
|
45
|
-
type:
|
|
44
|
+
type: E5.String_unsecure(),
|
|
46
45
|
isOptional: false
|
|
47
46
|
},
|
|
48
47
|
status: {
|
|
49
|
-
type:
|
|
48
|
+
type: E5.String_unsecure(),
|
|
50
49
|
isOptional: false
|
|
51
50
|
}
|
|
52
51
|
}
|
|
@@ -57,16 +56,16 @@ const KbRuleVersionCreatedEvent = defineEvent({
|
|
|
57
56
|
description: "Rule version created (draft).",
|
|
58
57
|
payload: KbRuleVersionCreatedPayload
|
|
59
58
|
});
|
|
60
|
-
const KbRuleVersionApprovedPayload =
|
|
59
|
+
const KbRuleVersionApprovedPayload = K5({
|
|
61
60
|
name: "KbRuleVersionApprovedPayload",
|
|
62
61
|
description: "Emitted when a rule version is approved.",
|
|
63
62
|
fields: {
|
|
64
63
|
ruleVersionId: {
|
|
65
|
-
type:
|
|
64
|
+
type: E5.String_unsecure(),
|
|
66
65
|
isOptional: false
|
|
67
66
|
},
|
|
68
67
|
approver: {
|
|
69
|
-
type:
|
|
68
|
+
type: E5.String_unsecure(),
|
|
70
69
|
isOptional: false
|
|
71
70
|
}
|
|
72
71
|
}
|
|
@@ -77,20 +76,20 @@ const KbRuleVersionApprovedEvent = defineEvent({
|
|
|
77
76
|
description: "Rule version approved (human verified).",
|
|
78
77
|
payload: KbRuleVersionApprovedPayload
|
|
79
78
|
});
|
|
80
|
-
const KbSnapshotPublishedPayload =
|
|
79
|
+
const KbSnapshotPublishedPayload = K5({
|
|
81
80
|
name: "KbSnapshotPublishedPayload",
|
|
82
81
|
description: "Emitted when a KB snapshot is published.",
|
|
83
82
|
fields: {
|
|
84
83
|
snapshotId: {
|
|
85
|
-
type:
|
|
84
|
+
type: E5.String_unsecure(),
|
|
86
85
|
isOptional: false
|
|
87
86
|
},
|
|
88
87
|
jurisdiction: {
|
|
89
|
-
type:
|
|
88
|
+
type: E5.String_unsecure(),
|
|
90
89
|
isOptional: false
|
|
91
90
|
},
|
|
92
91
|
includedRuleVersionsCount: {
|
|
93
|
-
type:
|
|
92
|
+
type: E5.Int_unsecure(),
|
|
94
93
|
isOptional: false
|
|
95
94
|
}
|
|
96
95
|
}
|
|
@@ -103,4 +102,5 @@ const KbSnapshotPublishedEvent = defineEvent({
|
|
|
103
102
|
});
|
|
104
103
|
|
|
105
104
|
//#endregion
|
|
106
|
-
export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
|
|
105
|
+
export { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent };
|
|
106
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../src/events.ts"],"sourcesContent":["import { defineEvent, defineSchemaModel } from '@lssm/lib.contracts';\nimport { ScalarTypeEnum } from '@lssm/lib.schema';\n\nconst KbSourceIngestedPayload = defineSchemaModel({\n name: 'KbSourceIngestedPayload',\n description: 'Emitted when a source document is ingested.',\n fields: {\n sourceDocumentId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n hash: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbSourceIngestedEvent = defineEvent({\n name: 'kb.source.ingested',\n version: 1,\n description: 'Source document ingested (immutable).',\n payload: KbSourceIngestedPayload,\n});\n\nconst KbRuleVersionCreatedPayload = defineSchemaModel({\n name: 'KbRuleVersionCreatedPayload',\n description: 'Emitted when a rule version draft is created.',\n fields: {\n ruleVersionId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ruleId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbRuleVersionCreatedEvent = defineEvent({\n name: 'kb.ruleVersion.created',\n version: 1,\n description: 'Rule version created (draft).',\n payload: KbRuleVersionCreatedPayload,\n});\n\nconst KbRuleVersionApprovedPayload = defineSchemaModel({\n name: 'KbRuleVersionApprovedPayload',\n description: 'Emitted when a rule version is approved.',\n fields: {\n ruleVersionId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n approver: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbRuleVersionApprovedEvent = defineEvent({\n name: 'kb.ruleVersion.approved',\n version: 1,\n description: 'Rule version approved (human verified).',\n payload: KbRuleVersionApprovedPayload,\n});\n\nconst KbSnapshotPublishedPayload = defineSchemaModel({\n name: 'KbSnapshotPublishedPayload',\n description: 'Emitted when a KB snapshot is published.',\n fields: {\n snapshotId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includedRuleVersionsCount: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n },\n});\n\nexport const KbSnapshotPublishedEvent = defineEvent({\n name: 'kb.snapshot.published',\n version: 1,\n description: 'KB snapshot published.',\n payload: KbSnapshotPublishedPayload,\n});\n"],"mappings":";;;;;;AAGA,MAAM,0BAA0BA,GAAkB;CAChD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,kBAAkB;GAChB,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE;CACF,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAM,8BAA8BD,GAAkB;CACpD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,eAAe;GACb,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE;CACF,CAAC;AAEF,MAAa,4BAA4B,YAAY;CACnD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAM,+BAA+BD,GAAkB;CACrD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,eAAe;GACb,MAAMC,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE;CACF,CAAC;AAEF,MAAa,6BAA6B,YAAY;CACpD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC;AAEF,MAAM,6BAA6BD,GAAkB;CACnD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,YAAY;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE,cAAc;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,2BAA2B;GACzB,MAAMA,GAAe,cAAc;GACnC,YAAY;GACb;EACF;CACF,CAAC;AAEF,MAAa,2BAA2B,YAAY;CAClD,MAAM;CACN,SAAS;CACT,aAAa;CACb,SAAS;CACV,CAAC"}
|
package/dist/example.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAwBI,EAAA,0BAAA"}
|
package/dist/example.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'versioned-knowledge-base',\n title: 'Versioned Knowledge Base',\n summary:\n 'Curated KB with immutable sources, reviewable rule versions, and published snapshots.',\n tags: ['knowledge', 'versioning', 'snapshots'],\n kind: 'knowledge',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.versioned-knowledge-base',\n },\n entrypoints: {\n packageName: '@lssm/example.versioned-knowledge-base',\n feature: './feature',\n contracts: './contracts',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs', 'builder'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAa;EAAc;EAAY;CAC9C,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,0CACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO;IAAC;IAAY;IAAS;IAAU;GAAE;EACnE,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
|
@@ -74,4 +74,5 @@ interface MemoryKbHandlers {
|
|
|
74
74
|
}
|
|
75
75
|
declare function createMemoryKbHandlers(store: MemoryKbStore): MemoryKbHandlers;
|
|
76
76
|
//#endregion
|
|
77
|
-
export { MemoryKbHandlers, MemoryKbStore, createMemoryKbHandlers, createMemoryKbStore };
|
|
77
|
+
export { MemoryKbHandlers, MemoryKbStore, createMemoryKbHandlers, createMemoryKbStore };
|
|
78
|
+
//# sourceMappingURL=memory.handlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.handlers.d.ts","names":[],"sources":["../../src/handlers/memory.handlers.ts"],"sourcesContent":[],"mappings":";UAAU,SAAA;EAAA,gBAAS,EAAA,MAAA;EAIT,OAAA,CAAA,EAAA,MAAA;AAKO;AAIH,UATJ,cAAA,CAcW;EAOP,EAAA,EAAA,MAAA;EAGC,YAAA,EAAA,MAAA;EACF,SAAA,EAAA,MAAA;EAAI,KAAA,EAAA,MAAA;EAEP,SAAA,EAtBG,IAsBO;EAQH,IAAA,EAAA,MAAA;EACM,MAAA,EAAA,MAAA;;UA3Bb,IAAA,CA4BW;EAAZ,EAAA,EAAA,MAAA;EACmB,YAAA,EAAA,MAAA;EAAZ,QAAA,EAAA,MAAA;;UAxBN,WAAA,CAyBG;EACoB,EAAA,EAAA,MAAA;EAAG,MAAA,EAAA,MAAA;EAGpB,YAAA,EAAA,MAAA;EAUC,QAAA,EAAA,MAAA;EACE,OAAA,EAAA,MAAA;EAAe,OAAA,EAAA,MAAA;EAAR,UAAA,EAjCZ,SAiCY,EAAA;EACC,MAAA,EAAA,OAAA,GAAA,UAAA,GAAA,UAAA;EAAL,UAAA,CAAA,EAAA,MAAA;EAAqC,UAAA,CAAA,EA/B5C,IA+B4C;EAAR,SAAA,EA9BtC,IA8BsC;;UA5BzC,UAAA,CAiCI;EAAR,EAAA,EAAA,MAAA;EAIQ,YAAA,EAAA,MAAA;EAAR,QAAA,EAlCM,IAkCN;EAGQ,sBAAA,EAAA,MAAA,EAAA;EACA,WAAA,EApCC,IAoCD;;AAKR,UAtCW,aAAA,CAsCX;EAAO,OAAA,EArCF,GAqCE,CAAA,MAAA,EArCU,cAqCV,CAAA;EAOG,KAAA,EA3CP,GA2CO,CAAA,MAAA,EA3CK,IA2CL,CAAA;gBA1CA,YAAY;aACf,YAAY;iCACQ;;iBAGjB,mBAAA,CAAA,GAAuB;UAUtB,gBAAA;mBACE,OAAO,QAAQ;sBACZ,KAAK,wBAAwB,QAAQ;;;;gBAI3C;MACV,QAAQ;;;;MAIR,QAAQ;;;cAGA;MACR,QAAQ;;;;;MAKR;;;;;;;iBAOU,sBAAA,QAA8B,gBAAgB"}
|