@lssm/example.versioned-knowledge-base 0.0.0-canary-20251217060834 → 0.0.0-canary-20251217063201
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 +191 -34
- package/.turbo/turbo-build.log +37 -35
- package/CHANGELOG.md +3 -3
- package/dist/contracts/kb.d.ts +70 -70
- package/dist/contracts/kb.js +1 -1
- package/dist/docs/versioned-knowledge-base.docblock.js +1 -1
- package/dist/entities/models.d.ts +36 -36
- package/dist/entities/models.js +1 -1
- package/dist/events.d.ts +17 -17
- package/dist/events.js +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
- package/dist/libs/contracts/dist/client/index.js +1 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/contracts/dist/client/react/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +1 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +76 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
- package/dist/libs/contracts/dist/docs/index.js +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +58 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +38 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +213 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +289 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +262 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +63 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +36 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +65 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +41 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +122 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +68 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +1 -0
- package/dist/libs/contracts/dist/events.js +1 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/index.js +1 -0
- package/dist/libs/contracts/dist/install.js +1 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
- package/dist/libs/contracts/dist/integrations/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
- package/dist/libs/contracts/dist/knowledge/index.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +1 -0
- package/dist/libs/contracts/dist/llm/index.js +1 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +1 -0
- package/dist/libs/contracts/dist/openapi.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +1 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +1 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +1 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +1 -0
- package/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
- package/dist/libs/contracts/dist/server/index.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/spec.js +1 -0
- package/dist/libs/contracts/dist/telemetry/index.js +1 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +1 -0
- package/dist/libs/contracts/dist/tests/runner.js +1 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/schema/dist/EnumType.js +1 -0
- package/dist/libs/schema/dist/FieldType.js +1 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/libs/schema/dist/SchemaModel.js +1 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +1 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +1 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
package/dist/contracts/kb.d.ts
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
1
|
+
import * as _lssm_lib_schema50 from "@lssm/lib.schema";
|
|
1
2
|
import * as _lssm_lib_contracts3 from "@lssm/lib.contracts";
|
|
2
|
-
import * as _lssm_lib_schema15 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/kb.d.ts
|
|
5
|
-
declare const KbIngestSourceContract: _lssm_lib_contracts3.ContractSpec<
|
|
5
|
+
declare const KbIngestSourceContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
6
6
|
jurisdiction: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
authority: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
title: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
fetchedAt: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
hash: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
fileId: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
|
-
}>,
|
|
30
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
31
31
|
id: {
|
|
32
|
-
type:
|
|
32
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
jurisdiction: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
authority: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
41
41
|
isOptional: false;
|
|
42
42
|
};
|
|
43
43
|
title: {
|
|
44
|
-
type:
|
|
44
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
45
45
|
isOptional: false;
|
|
46
46
|
};
|
|
47
47
|
fetchedAt: {
|
|
48
|
-
type:
|
|
48
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
49
49
|
isOptional: false;
|
|
50
50
|
};
|
|
51
51
|
hash: {
|
|
52
|
-
type:
|
|
52
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
fileId: {
|
|
56
|
-
type:
|
|
56
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
}>, undefined>;
|
|
60
|
-
declare const KbUpsertRuleVersionContract: _lssm_lib_contracts3.ContractSpec<
|
|
60
|
+
declare const KbUpsertRuleVersionContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
61
61
|
ruleId: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
content: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
sourceRefs: {
|
|
70
|
-
type:
|
|
70
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
71
71
|
sourceDocumentId: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
excerpt: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
isArray: true;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
|
-
}>,
|
|
83
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
84
84
|
id: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
ruleId: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
jurisdiction: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
topicKey: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
version: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema50.FieldType<number, number>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
content: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
sourceRefs: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
110
110
|
sourceDocumentId: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
excerpt: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
116
116
|
isOptional: true;
|
|
117
117
|
};
|
|
118
118
|
}>;
|
|
@@ -120,64 +120,64 @@ declare const KbUpsertRuleVersionContract: _lssm_lib_contracts3.ContractSpec<_ls
|
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
status: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
approvedBy: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
128
128
|
isOptional: true;
|
|
129
129
|
};
|
|
130
130
|
approvedAt: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
createdAt: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
}>, undefined>;
|
|
139
|
-
declare const KbApproveRuleVersionContract: _lssm_lib_contracts3.ContractSpec<
|
|
139
|
+
declare const KbApproveRuleVersionContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
140
140
|
ruleVersionId: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
approver: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
|
-
}>,
|
|
148
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
149
149
|
id: {
|
|
150
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
ruleId: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
jurisdiction: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
topicKey: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
version: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema50.FieldType<number, number>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
content: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
sourceRefs: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
175
175
|
sourceDocumentId: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
excerpt: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
181
181
|
isOptional: true;
|
|
182
182
|
};
|
|
183
183
|
}>;
|
|
@@ -185,76 +185,76 @@ declare const KbApproveRuleVersionContract: _lssm_lib_contracts3.ContractSpec<_l
|
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
status: {
|
|
188
|
-
type:
|
|
188
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
approvedBy: {
|
|
192
|
-
type:
|
|
192
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
193
193
|
isOptional: true;
|
|
194
194
|
};
|
|
195
195
|
approvedAt: {
|
|
196
|
-
type:
|
|
196
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
197
197
|
isOptional: true;
|
|
198
198
|
};
|
|
199
199
|
createdAt: {
|
|
200
|
-
type:
|
|
200
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
201
201
|
isOptional: false;
|
|
202
202
|
};
|
|
203
203
|
}>, undefined>;
|
|
204
|
-
declare const KbPublishSnapshotContract: _lssm_lib_contracts3.ContractSpec<
|
|
204
|
+
declare const KbPublishSnapshotContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
205
205
|
jurisdiction: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
asOfDate: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
|
-
}>,
|
|
213
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
214
214
|
id: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
jurisdiction: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
asOfDate: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
224
224
|
isOptional: false;
|
|
225
225
|
};
|
|
226
226
|
includedRuleVersionIds: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
228
228
|
isArray: true;
|
|
229
229
|
isOptional: false;
|
|
230
230
|
};
|
|
231
231
|
publishedAt: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema50.FieldType<Date, string>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
}>, undefined>;
|
|
236
|
-
declare const KbSearchContract: _lssm_lib_contracts3.ContractSpec<
|
|
236
|
+
declare const KbSearchContract: _lssm_lib_contracts3.ContractSpec<_lssm_lib_schema50.SchemaModel<{
|
|
237
237
|
snapshotId: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
239
239
|
isOptional: false;
|
|
240
240
|
};
|
|
241
241
|
jurisdiction: {
|
|
242
|
-
type:
|
|
242
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
243
243
|
isOptional: false;
|
|
244
244
|
};
|
|
245
245
|
query: {
|
|
246
|
-
type:
|
|
246
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
247
247
|
isOptional: false;
|
|
248
248
|
};
|
|
249
|
-
}>,
|
|
249
|
+
}>, _lssm_lib_schema50.SchemaModel<{
|
|
250
250
|
items: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema50.SchemaModel<{
|
|
252
252
|
ruleVersionId: {
|
|
253
|
-
type:
|
|
253
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
254
254
|
isOptional: false;
|
|
255
255
|
};
|
|
256
256
|
excerpt: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema50.FieldType<string, string>;
|
|
258
258
|
isOptional: true;
|
|
259
259
|
};
|
|
260
260
|
}>;
|
package/dist/contracts/kb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e,t}from"../libs/contracts/dist/spec.js";import"../libs/contracts/dist/index.js";import{l as n}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as r}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";import{KBSnapshotModel as i,RuleVersionModel as a,SourceDocumentModel as o,SourceRefModel as s}from"../entities/models.js";const c=r({name:`KbIngestSourceInput`,description:`Ingest immutable source metadata referencing a stored file.`,fields:{jurisdiction:{type:n.String_unsecure(),isOptional:!1},authority:{type:n.String_unsecure(),isOptional:!1},title:{type:n.String_unsecure(),isOptional:!1},fetchedAt:{type:n.DateTime(),isOptional:!1},hash:{type:n.String_unsecure(),isOptional:!1},fileId:{type:n.String_unsecure(),isOptional:!1}}}),l=r({name:`KbUpsertRuleVersionInput`,description:`Create a new draft rule version (immutable history).`,fields:{ruleId:{type:n.String_unsecure(),isOptional:!1},content:{type:n.String_unsecure(),isOptional:!1},sourceRefs:{type:s,isArray:!0,isOptional:!1}}}),u=r({name:`KbApproveRuleVersionInput`,description:`Approve a rule version (human verification).`,fields:{ruleVersionId:{type:n.String_unsecure(),isOptional:!1},approver:{type:n.String_unsecure(),isOptional:!1}}}),d=r({name:`KbPublishSnapshotInput`,description:`Publish a snapshot for a jurisdiction as-of a date.`,fields:{jurisdiction:{type:n.String_unsecure(),isOptional:!1},asOfDate:{type:n.DateTime(),isOptional:!1}}}),f=r({name:`KbSearchInput`,description:`Search within a published snapshot.`,fields:{snapshotId:{type:n.String_unsecure(),isOptional:!1},jurisdiction:{type:n.String_unsecure(),isOptional:!1},query:{type:n.String_unsecure(),isOptional:!1}}}),p=r({name:`KbSearchOutput`,description:`Search results constrained to snapshot + jurisdiction.`,fields:{items:{type:r({name:`KbSearchResultItem`,description:`Search result referencing a specific rule version.`,fields:{ruleVersionId:{type:n.String_unsecure(),isOptional:!1},excerpt:{type:n.String_unsecure(),isOptional:!0}}}),isArray:!0,isOptional:!1}}}),m=t({meta:{name:`kb.ingestSource`,version:1,stability:`experimental`,owners:[`@examples`],tags:[`knowledge`,`sources`,`ingestion`],description:`Ingest immutable source document metadata.`,goal:`Store traceable source documents for curated KB.`,context:`Called when an admin uploads/records authoritative sources.`},io:{input:c,output:o},policy:{auth:`user`}}),h=t({meta:{name:`kb.upsertRuleVersion`,version:1,stability:`experimental`,owners:[`@examples`],tags:[`knowledge`,`rules`,`versioning`],description:`Create a new draft rule version with source references.`,goal:`Propose curated knowledge updates with traceability.`,context:`Automation or curators propose draft rule versions.`},io:{input:l,output:a,errors:{SOURCE_REFS_REQUIRED:{description:`Rule version must cite at least one sourceRef`,http:400,gqlCode:`SOURCE_REFS_REQUIRED`,when:`sourceRefs is empty`},RULE_NOT_FOUND:{description:`Rule does not exist`,http:404,gqlCode:`RULE_NOT_FOUND`,when:`ruleId is unknown`}}},policy:{auth:`user`}}),g=t({meta:{name:`kb.approveRuleVersion`,version:1,stability:`experimental`,owners:[`@examples`],tags:[`knowledge`,`rules`,`approval`],description:`Approve a draft rule version.`,goal:`Human verification step before publishing snapshots.`,context:`Curators/experts approve proposed KB changes.`},io:{input:u,output:a},policy:{auth:`user`}}),_=t({meta:{name:`kb.publishSnapshot`,version:1,stability:`experimental`,owners:[`@examples`],tags:[`knowledge`,`snapshots`,`publishing`],description:`Publish a KB snapshot for a jurisdiction.`,goal:`Create a stable snapshot that assistant answers can cite.`,context:`Publishing happens after approvals; snapshot is referenced by answers.`},io:{input:d,output:i,errors:{NO_APPROVED_RULES:{description:`No approved rule versions available to publish`,http:409,gqlCode:`NO_APPROVED_RULES`,when:`jurisdiction has zero approved rule versions`}}},policy:{auth:`user`}}),v=e({meta:{name:`kb.search`,version:1,stability:`experimental`,owners:[`@examples`],tags:[`knowledge`,`search`,`snapshots`],description:`Search within a published KB snapshot.`,goal:`Provide scoped retrieval for assistant answers.`,context:`Assistant queries curated rules from a specific snapshot.`},io:{input:f,output:p},policy:{auth:`user`}});export{g as KbApproveRuleVersionContract,m as KbIngestSourceContract,_ as KbPublishSnapshotContract,v as KbSearchContract,h as KbUpsertRuleVersionContract};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as e}from"../libs/contracts/dist/docs/registry.js";import"../libs/contracts/dist/docs/index.js";e([{id:`docs.examples.versioned-knowledge-base.goal`,title:`Versioned Knowledge Base — Goal`,summary:`Curated KB with immutable sources, versioned rules, and published snapshots referenced by answers.`,kind:`goal`,visibility:`public`,route:`/docs/examples/versioned-knowledge-base/goal`,tags:[`knowledge`,`versioning`,`snapshots`,`traceability`],body:`## Why it matters
|
|
2
2
|
- Separates raw sources from curated knowledge.
|
|
3
3
|
- Ensures assistant answers cite a published snapshot.
|
|
4
4
|
- Makes change review and safe regeneration possible.
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/models.d.ts
|
|
4
|
-
declare const SourceDocumentModel:
|
|
4
|
+
declare const SourceDocumentModel: _lssm_lib_schema0.SchemaModel<{
|
|
5
5
|
id: {
|
|
6
|
-
type:
|
|
6
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
8
8
|
};
|
|
9
9
|
jurisdiction: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
authority: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
title: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
fetchedAt: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
hash: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
fileId: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
}>;
|
|
34
|
-
declare const SourceRefModel:
|
|
34
|
+
declare const SourceRefModel: _lssm_lib_schema0.SchemaModel<{
|
|
35
35
|
sourceDocumentId: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
excerpt: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
41
41
|
isOptional: true;
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
|
-
declare const RuleModel:
|
|
44
|
+
declare const RuleModel: _lssm_lib_schema0.SchemaModel<{
|
|
45
45
|
id: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
jurisdiction: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
topicKey: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
|
-
declare const RuleVersionModel:
|
|
58
|
+
declare const RuleVersionModel: _lssm_lib_schema0.SchemaModel<{
|
|
59
59
|
id: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
ruleId: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
jurisdiction: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
topicKey: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
version: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
content: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
sourceRefs: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
85
85
|
sourceDocumentId: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
excerpt: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
91
91
|
isOptional: true;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
@@ -95,42 +95,42 @@ declare const RuleVersionModel: _lssm_lib_schema84.SchemaModel<{
|
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
status: {
|
|
98
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
99
99
|
isOptional: false;
|
|
100
100
|
};
|
|
101
101
|
approvedBy: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
103
103
|
isOptional: true;
|
|
104
104
|
};
|
|
105
105
|
approvedAt: {
|
|
106
|
-
type:
|
|
106
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
107
107
|
isOptional: true;
|
|
108
108
|
};
|
|
109
109
|
createdAt: {
|
|
110
|
-
type:
|
|
110
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
111
111
|
isOptional: false;
|
|
112
112
|
};
|
|
113
113
|
}>;
|
|
114
|
-
declare const KBSnapshotModel:
|
|
114
|
+
declare const KBSnapshotModel: _lssm_lib_schema0.SchemaModel<{
|
|
115
115
|
id: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
jurisdiction: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
121
121
|
isOptional: false;
|
|
122
122
|
};
|
|
123
123
|
asOfDate: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
includedRuleVersionIds: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
129
129
|
isArray: true;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
publishedAt: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
}>;
|
package/dist/entities/models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l as e}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as t}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";const n=t({name:`SourceDocument`,description:`Immutable raw source document metadata referencing a stored file.`,fields:{id:{type:e.String_unsecure(),isOptional:!1},jurisdiction:{type:e.String_unsecure(),isOptional:!1},authority:{type:e.String_unsecure(),isOptional:!1},title:{type:e.String_unsecure(),isOptional:!1},fetchedAt:{type:e.DateTime(),isOptional:!1},hash:{type:e.String_unsecure(),isOptional:!1},fileId:{type:e.String_unsecure(),isOptional:!1}}}),r=t({name:`SourceRef`,description:`Reference to a source document used to justify a rule version.`,fields:{sourceDocumentId:{type:e.String_unsecure(),isOptional:!1},excerpt:{type:e.String_unsecure(),isOptional:!0}}}),i=t({name:`Rule`,description:`Curated rule (stable identity) with topic + jurisdiction scope.`,fields:{id:{type:e.String_unsecure(),isOptional:!1},jurisdiction:{type:e.String_unsecure(),isOptional:!1},topicKey:{type:e.String_unsecure(),isOptional:!1}}}),a=t({name:`RuleVersion`,description:`A versioned rule content with source references and approval status.`,fields:{id:{type:e.String_unsecure(),isOptional:!1},ruleId:{type:e.String_unsecure(),isOptional:!1},jurisdiction:{type:e.String_unsecure(),isOptional:!1},topicKey:{type:e.String_unsecure(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},content:{type:e.String_unsecure(),isOptional:!1},sourceRefs:{type:r,isArray:!0,isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},approvedBy:{type:e.String_unsecure(),isOptional:!0},approvedAt:{type:e.DateTime(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1}}}),o=t({name:`KBSnapshot`,description:`Published KB snapshot (as-of) referencing approved rule versions.`,fields:{id:{type:e.String_unsecure(),isOptional:!1},jurisdiction:{type:e.String_unsecure(),isOptional:!1},asOfDate:{type:e.DateTime(),isOptional:!1},includedRuleVersionIds:{type:e.String_unsecure(),isArray:!0,isOptional:!1},publishedAt:{type:e.DateTime(),isOptional:!1}}});export{o as KBSnapshotModel,i as RuleModel,a as RuleVersionModel,n as SourceDocumentModel,r as SourceRefModel};
|
package/dist/events.d.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
+
import * as _lssm_lib_schema34 from "@lssm/lib.schema";
|
|
1
2
|
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
2
|
-
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const KbSourceIngestedEvent: _lssm_lib_contracts0.EventSpec<
|
|
5
|
+
declare const KbSourceIngestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema34.SchemaModel<{
|
|
6
6
|
sourceDocumentId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
jurisdiction: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
hash: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
}>>;
|
|
19
|
-
declare const KbRuleVersionCreatedEvent: _lssm_lib_contracts0.EventSpec<
|
|
19
|
+
declare const KbRuleVersionCreatedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema34.SchemaModel<{
|
|
20
20
|
ruleVersionId: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
ruleId: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
jurisdiction: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
status: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
}>>;
|
|
37
|
-
declare const KbRuleVersionApprovedEvent: _lssm_lib_contracts0.EventSpec<
|
|
37
|
+
declare const KbRuleVersionApprovedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema34.SchemaModel<{
|
|
38
38
|
ruleVersionId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
approver: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
}>>;
|
|
47
|
-
declare const KbSnapshotPublishedEvent: _lssm_lib_contracts0.EventSpec<
|
|
47
|
+
declare const KbSnapshotPublishedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema34.SchemaModel<{
|
|
48
48
|
snapshotId: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
jurisdiction: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema34.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
includedRuleVersionsCount: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema34.FieldType<number, number>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
}>>;
|
package/dist/events.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e}from"./libs/contracts/dist/schema/dist/SchemaModel.js";import{e as t}from"./libs/contracts/dist/events.js";import"./libs/contracts/dist/index.js";import{l as n}from"./libs/schema/dist/ScalarTypeEnum.js";import"./libs/schema/dist/index.js";const r=t({name:`kb.source.ingested`,version:1,description:`Source document ingested (immutable).`,payload:e({name:`KbSourceIngestedPayload`,description:`Emitted when a source document is ingested.`,fields:{sourceDocumentId:{type:n.String_unsecure(),isOptional:!1},jurisdiction:{type:n.String_unsecure(),isOptional:!1},hash:{type:n.String_unsecure(),isOptional:!1}}})}),i=t({name:`kb.ruleVersion.created`,version:1,description:`Rule version created (draft).`,payload:e({name:`KbRuleVersionCreatedPayload`,description:`Emitted when a rule version draft is created.`,fields:{ruleVersionId:{type:n.String_unsecure(),isOptional:!1},ruleId:{type:n.String_unsecure(),isOptional:!1},jurisdiction:{type:n.String_unsecure(),isOptional:!1},status:{type:n.String_unsecure(),isOptional:!1}}})}),a=t({name:`kb.ruleVersion.approved`,version:1,description:`Rule version approved (human verified).`,payload:e({name:`KbRuleVersionApprovedPayload`,description:`Emitted when a rule version is approved.`,fields:{ruleVersionId:{type:n.String_unsecure(),isOptional:!1},approver:{type:n.String_unsecure(),isOptional:!1}}})}),o=t({name:`kb.snapshot.published`,version:1,description:`KB snapshot published.`,payload:e({name:`KbSnapshotPublishedPayload`,description:`Emitted when a KB snapshot is published.`,fields:{snapshotId:{type:n.String_unsecure(),isOptional:!1},jurisdiction:{type:n.String_unsecure(),isOptional:!1},includedRuleVersionsCount:{type:n.Int_unsecure(),isOptional:!1}}})});export{a as KbRuleVersionApprovedEvent,i as KbRuleVersionCreatedEvent,o as KbSnapshotPublishedEvent,r as KbSourceIngestedEvent};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { KbApproveRuleVersionContract, KbIngestSourceContract, KbPublishSnapshotContract, KbSearchContract, KbUpsertRuleVersionContract } from "./contracts/kb.js";
|
|
2
|
-
import "./contracts/index.js";
|
|
3
2
|
import { KBSnapshotModel, RuleModel, RuleVersionModel, SourceDocumentModel, SourceRefModel } from "./entities/models.js";
|
|
4
|
-
import "./entities/index.js";
|
|
5
3
|
import { KbRuleVersionApprovedEvent, KbRuleVersionCreatedEvent, KbSnapshotPublishedEvent, KbSourceIngestedEvent } from "./events.js";
|
|
6
4
|
import example from "./example.js";
|
|
7
5
|
import { MemoryKbHandlers, MemoryKbStore, createMemoryKbHandlers, createMemoryKbStore } from "./handlers/memory.handlers.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e}from"../ownership.js";const t=[`platform.finance`],n=[`open-banking`,`finance`];[...t],[...n],e.Experimental,[...t],[...n],e.Experimental,[...t],[...n],e.Experimental;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"./react/feature-render.js";import"./react/form-render.js";import"./react/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../presentations.v2.js";import"react";
|