@lssm/example.locale-jurisdiction-gate 0.0.0-canary-20251221153314 → 0.0.0-canary-20251221164004
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 +30 -30
- package/.turbo/turbo-build.log +27 -27
- package/CHANGELOG.md +3 -3
- package/dist/entities/models.d.ts +48 -48
- package/dist/entities/models.d.ts.map +1 -1
- package/dist/events.d.ts +19 -19
- package/dist/events.d.ts.map +1 -1
- package/dist/operations/assistant.d.ts +60 -60
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema63 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts2 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/operations/assistant.d.ts
|
|
5
|
-
declare const AssistantAnswerContract:
|
|
5
|
+
declare const AssistantAnswerContract: _lssm_lib_contracts2.OperationSpec<_lssm_lib_schema63.SchemaModel<{
|
|
6
6
|
envelope: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
8
8
|
traceId: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
locale: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
regulatoryContext: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
18
18
|
jurisdiction: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
region: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
clientType: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
30
|
allowedScope: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema63.EnumType<[string, string, string]>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
}>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
kbSnapshotId: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
allowedScope: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema63.EnumType<[string, string, string]>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
question: {
|
|
49
|
-
type:
|
|
49
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
|
-
}>,
|
|
52
|
+
}>, _lssm_lib_schema63.SchemaModel<{
|
|
53
53
|
locale: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
jurisdiction: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
allowedScope: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema63.EnumType<[string, string, string]>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
sections: {
|
|
66
|
-
type:
|
|
66
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
67
67
|
heading: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
body: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
}>;
|
|
@@ -77,25 +77,25 @@ declare const AssistantAnswerContract: _lssm_lib_contracts0.OperationSpec<_lssm_
|
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
citations: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
81
81
|
kbSnapshotId: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
sourceType: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
sourceId: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
title: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
excerpt: {
|
|
98
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
}>;
|
|
@@ -103,92 +103,92 @@ declare const AssistantAnswerContract: _lssm_lib_contracts0.OperationSpec<_lssm_
|
|
|
103
103
|
isOptional: false;
|
|
104
104
|
};
|
|
105
105
|
disclaimers: {
|
|
106
|
-
type:
|
|
106
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
107
107
|
isArray: true;
|
|
108
108
|
isOptional: true;
|
|
109
109
|
};
|
|
110
110
|
riskFlags: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
112
112
|
isArray: true;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
};
|
|
115
115
|
refused: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema63.FieldType<boolean, boolean>;
|
|
117
117
|
isOptional: true;
|
|
118
118
|
};
|
|
119
119
|
refusalReason: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
}>, undefined>;
|
|
124
|
-
declare const AssistantExplainConceptContract:
|
|
124
|
+
declare const AssistantExplainConceptContract: _lssm_lib_contracts2.OperationSpec<_lssm_lib_schema63.SchemaModel<{
|
|
125
125
|
envelope: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
127
127
|
traceId: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
129
129
|
isOptional: false;
|
|
130
130
|
};
|
|
131
131
|
locale: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
regulatoryContext: {
|
|
136
|
-
type:
|
|
136
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
137
137
|
jurisdiction: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
region: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
143
143
|
isOptional: true;
|
|
144
144
|
};
|
|
145
145
|
clientType: {
|
|
146
|
-
type:
|
|
146
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
147
147
|
isOptional: true;
|
|
148
148
|
};
|
|
149
149
|
allowedScope: {
|
|
150
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema63.EnumType<[string, string, string]>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
}>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
kbSnapshotId: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
allowedScope: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema63.EnumType<[string, string, string]>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
}>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
conceptKey: {
|
|
168
|
-
type:
|
|
168
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
169
169
|
isOptional: false;
|
|
170
170
|
};
|
|
171
|
-
}>,
|
|
171
|
+
}>, _lssm_lib_schema63.SchemaModel<{
|
|
172
172
|
locale: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
jurisdiction: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
178
178
|
isOptional: false;
|
|
179
179
|
};
|
|
180
180
|
allowedScope: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema63.EnumType<[string, string, string]>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
sections: {
|
|
185
|
-
type:
|
|
185
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
186
186
|
heading: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
188
188
|
isOptional: false;
|
|
189
189
|
};
|
|
190
190
|
body: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
}>;
|
|
@@ -196,25 +196,25 @@ declare const AssistantExplainConceptContract: _lssm_lib_contracts0.OperationSpe
|
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
citations: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema63.SchemaModel<{
|
|
200
200
|
kbSnapshotId: {
|
|
201
|
-
type:
|
|
201
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
202
202
|
isOptional: false;
|
|
203
203
|
};
|
|
204
204
|
sourceType: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
206
206
|
isOptional: false;
|
|
207
207
|
};
|
|
208
208
|
sourceId: {
|
|
209
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
210
210
|
isOptional: false;
|
|
211
211
|
};
|
|
212
212
|
title: {
|
|
213
|
-
type:
|
|
213
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
214
214
|
isOptional: true;
|
|
215
215
|
};
|
|
216
216
|
excerpt: {
|
|
217
|
-
type:
|
|
217
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
218
218
|
isOptional: true;
|
|
219
219
|
};
|
|
220
220
|
}>;
|
|
@@ -222,21 +222,21 @@ declare const AssistantExplainConceptContract: _lssm_lib_contracts0.OperationSpe
|
|
|
222
222
|
isOptional: false;
|
|
223
223
|
};
|
|
224
224
|
disclaimers: {
|
|
225
|
-
type:
|
|
225
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
226
226
|
isArray: true;
|
|
227
227
|
isOptional: true;
|
|
228
228
|
};
|
|
229
229
|
riskFlags: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
231
231
|
isArray: true;
|
|
232
232
|
isOptional: true;
|
|
233
233
|
};
|
|
234
234
|
refused: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema63.FieldType<boolean, boolean>;
|
|
236
236
|
isOptional: true;
|
|
237
237
|
};
|
|
238
238
|
refusalReason: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema63.FieldType<string, string>;
|
|
240
240
|
isOptional: true;
|
|
241
241
|
};
|
|
242
242
|
}>, undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.locale-jurisdiction-gate",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251221164004",
|
|
4
4
|
"description": "Example: enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"test": "bun test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
42
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
41
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251221164004",
|
|
42
|
+
"@lssm/lib.schema": "0.0.0-canary-20251221164004",
|
|
43
43
|
"zod": "^4.1.13"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
47
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
46
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251221164004",
|
|
47
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251221164004",
|
|
48
48
|
"tsdown": "^0.18.1",
|
|
49
49
|
"typescript": "^5.9.3"
|
|
50
50
|
},
|