@lssm/example.locale-jurisdiction-gate 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217062139
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 +189 -33
- package/CHANGELOG.md +3 -3
- package/dist/contracts/assistant.d.ts +59 -59
- package/dist/contracts/assistant.js +1 -1
- package/dist/docs/locale-jurisdiction-gate.docblock.js +1 -1
- package/dist/entities/models.d.ts +48 -48
- package/dist/entities/models.js +1 -1
- package/dist/events.d.ts +1 -1
- 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
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema16 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/models.d.ts
|
|
4
|
-
declare const AllowedScopeEnum:
|
|
5
|
-
declare const UserProfileModel:
|
|
4
|
+
declare const AllowedScopeEnum: _lssm_lib_schema16.EnumType<[string, string, string]>;
|
|
5
|
+
declare const UserProfileModel: _lssm_lib_schema16.SchemaModel<{
|
|
6
6
|
preferredLocale: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
8
8
|
isOptional: true;
|
|
9
9
|
};
|
|
10
10
|
residencyCountry: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
taxResidenceCountry: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
16
16
|
isOptional: true;
|
|
17
17
|
};
|
|
18
18
|
clientType: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
23
|
-
declare const RegulatoryContextModel:
|
|
23
|
+
declare const RegulatoryContextModel: _lssm_lib_schema16.SchemaModel<{
|
|
24
24
|
jurisdiction: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
region: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
clientType: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
allowedScope: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema16.EnumType<[string, string, string]>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
41
|
-
declare const LLMCallEnvelopeModel:
|
|
41
|
+
declare const LLMCallEnvelopeModel: _lssm_lib_schema16.SchemaModel<{
|
|
42
42
|
traceId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
locale: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
regulatoryContext: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema16.SchemaModel<{
|
|
52
52
|
jurisdiction: {
|
|
53
|
-
type:
|
|
53
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
55
55
|
};
|
|
56
56
|
region: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
58
58
|
isOptional: true;
|
|
59
59
|
};
|
|
60
60
|
clientType: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
62
62
|
isOptional: true;
|
|
63
63
|
};
|
|
64
64
|
allowedScope: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema16.EnumType<[string, string, string]>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
}>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
kbSnapshotId: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
allowedScope: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema16.EnumType<[string, string, string]>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
|
-
declare const AssistantCitationModel:
|
|
80
|
+
declare const AssistantCitationModel: _lssm_lib_schema16.SchemaModel<{
|
|
81
81
|
kbSnapshotId: {
|
|
82
|
-
type:
|
|
82
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
sourceType: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
sourceId: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
title: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
95
95
|
isOptional: true;
|
|
96
96
|
};
|
|
97
97
|
excerpt: {
|
|
98
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
}>;
|
|
102
|
-
declare const AssistantAnswerSectionModel:
|
|
102
|
+
declare const AssistantAnswerSectionModel: _lssm_lib_schema16.SchemaModel<{
|
|
103
103
|
heading: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
body: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
}>;
|
|
112
|
-
declare const AssistantAnswerIRModel:
|
|
112
|
+
declare const AssistantAnswerIRModel: _lssm_lib_schema16.SchemaModel<{
|
|
113
113
|
locale: {
|
|
114
|
-
type:
|
|
114
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
115
115
|
isOptional: false;
|
|
116
116
|
};
|
|
117
117
|
jurisdiction: {
|
|
118
|
-
type:
|
|
118
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
allowedScope: {
|
|
122
|
-
type:
|
|
122
|
+
type: _lssm_lib_schema16.EnumType<[string, string, string]>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
sections: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema16.SchemaModel<{
|
|
127
127
|
heading: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
129
129
|
isOptional: false;
|
|
130
130
|
};
|
|
131
131
|
body: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
}>;
|
|
@@ -137,25 +137,25 @@ declare const AssistantAnswerIRModel: _lssm_lib_schema74.SchemaModel<{
|
|
|
137
137
|
isOptional: false;
|
|
138
138
|
};
|
|
139
139
|
citations: {
|
|
140
|
-
type:
|
|
140
|
+
type: _lssm_lib_schema16.SchemaModel<{
|
|
141
141
|
kbSnapshotId: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
143
143
|
isOptional: false;
|
|
144
144
|
};
|
|
145
145
|
sourceType: {
|
|
146
|
-
type:
|
|
146
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
147
147
|
isOptional: false;
|
|
148
148
|
};
|
|
149
149
|
sourceId: {
|
|
150
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
title: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
155
155
|
isOptional: true;
|
|
156
156
|
};
|
|
157
157
|
excerpt: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
159
159
|
isOptional: true;
|
|
160
160
|
};
|
|
161
161
|
}>;
|
|
@@ -163,21 +163,21 @@ declare const AssistantAnswerIRModel: _lssm_lib_schema74.SchemaModel<{
|
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
disclaimers: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
167
167
|
isArray: true;
|
|
168
168
|
isOptional: true;
|
|
169
169
|
};
|
|
170
170
|
riskFlags: {
|
|
171
|
-
type:
|
|
171
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
172
172
|
isArray: true;
|
|
173
173
|
isOptional: true;
|
|
174
174
|
};
|
|
175
175
|
refused: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema16.FieldType<boolean, boolean>;
|
|
177
177
|
isOptional: true;
|
|
178
178
|
};
|
|
179
179
|
refusalReason: {
|
|
180
|
-
type:
|
|
180
|
+
type: _lssm_lib_schema16.FieldType<string, string>;
|
|
181
181
|
isOptional: true;
|
|
182
182
|
};
|
|
183
183
|
}>;
|
package/dist/entities/models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../libs/schema/dist/EnumType.js";import{l as t}from"../libs/schema/dist/ScalarTypeEnum.js";import{n}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";const r=e(`AllowedScope`,[`education_only`,`generic_info`,`escalation_required`]),i=n({name:`UserProfile`,description:`User profile inputs used to derive regulatory context.`,fields:{preferredLocale:{type:t.String_unsecure(),isOptional:!0},residencyCountry:{type:t.String_unsecure(),isOptional:!0},taxResidenceCountry:{type:t.String_unsecure(),isOptional:!0},clientType:{type:t.String_unsecure(),isOptional:!0}}}),a=n({name:`RegulatoryContext`,description:`Explicit regulatory context (no guessing).`,fields:{jurisdiction:{type:t.String_unsecure(),isOptional:!1},region:{type:t.String_unsecure(),isOptional:!0},clientType:{type:t.String_unsecure(),isOptional:!0},allowedScope:{type:r,isOptional:!1}}}),o=n({name:`LLMCallEnvelope`,description:`Mandatory envelope for assistant calls. All fields are explicit and required for policy gating.`,fields:{traceId:{type:t.String_unsecure(),isOptional:!1},locale:{type:t.String_unsecure(),isOptional:!1},regulatoryContext:{type:a,isOptional:!1},kbSnapshotId:{type:t.String_unsecure(),isOptional:!1},allowedScope:{type:r,isOptional:!1}}}),s=n({name:`AssistantCitation`,description:`Citation referencing a KB snapshot + a specific item within it.`,fields:{kbSnapshotId:{type:t.String_unsecure(),isOptional:!1},sourceType:{type:t.String_unsecure(),isOptional:!1},sourceId:{type:t.String_unsecure(),isOptional:!1},title:{type:t.String_unsecure(),isOptional:!0},excerpt:{type:t.String_unsecure(),isOptional:!0}}}),c=n({name:`AssistantAnswerSection`,description:`Structured answer section.`,fields:{heading:{type:t.String_unsecure(),isOptional:!1},body:{type:t.String_unsecure(),isOptional:!1}}}),l=n({name:`AssistantAnswerIR`,description:`Structured assistant answer with mandatory citations and explicit locale/jurisdiction.`,fields:{locale:{type:t.String_unsecure(),isOptional:!1},jurisdiction:{type:t.String_unsecure(),isOptional:!1},allowedScope:{type:r,isOptional:!1},sections:{type:c,isArray:!0,isOptional:!1},citations:{type:s,isArray:!0,isOptional:!1},disclaimers:{type:t.String_unsecure(),isArray:!0,isOptional:!0},riskFlags:{type:t.String_unsecure(),isArray:!0,isOptional:!0},refused:{type:t.Boolean(),isOptional:!0},refusalReason:{type:t.String_unsecure(),isOptional:!0}}});export{r as AllowedScopeEnum,l as AssistantAnswerIRModel,c as AssistantAnswerSectionModel,s as AssistantCitationModel,o as LLMCallEnvelopeModel,a as RegulatoryContextModel,i as UserProfileModel};
|
package/dist/events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
2
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
5
|
declare const AssistantAnswerRequestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
|
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:`assistant.answer.requested`,version:1,description:`Assistant answer requested (policy gate will run).`,payload:e({name:`AssistantAnswerRequestedPayload`,description:`Emitted when an assistant answer is requested (pre-gate).`,fields:{traceId:{type:n.String_unsecure(),isOptional:!1},locale:{type:n.String_unsecure(),isOptional:!1},jurisdiction:{type:n.String_unsecure(),isOptional:!1},kbSnapshotId:{type:n.String_unsecure(),isOptional:!1},allowedScope:{type:n.String_unsecure(),isOptional:!1}}})}),i=t({name:`assistant.answer.blocked`,version:1,description:`Assistant answer blocked (fail-closed).`,payload:e({name:`AssistantAnswerBlockedPayload`,description:`Emitted when a request is blocked by the gate.`,fields:{traceId:{type:n.String_unsecure(),isOptional:!1},reasonCode:{type:n.String_unsecure(),isOptional:!1},reason:{type:n.String_unsecure(),isOptional:!1}}})}),a=t({name:`assistant.answer.delivered`,version:1,description:`Assistant answer delivered (must include KB snapshot citations).`,payload:e({name:`AssistantAnswerDeliveredPayload`,description:`Emitted when a structured, cited answer is delivered.`,fields:{traceId:{type:n.String_unsecure(),isOptional:!1},locale:{type:n.String_unsecure(),isOptional:!1},jurisdiction:{type:n.String_unsecure(),isOptional:!1},kbSnapshotId:{type:n.String_unsecure(),isOptional:!1},allowedScope:{type:n.String_unsecure(),isOptional:!1},citationsCount:{type:n.Int_unsecure(),isOptional:!1}}})});export{i as AssistantAnswerBlockedEvent,a as AssistantAnswerDeliveredEvent,r as AssistantAnswerRequestedEvent};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AssistantAnswerContract, AssistantExplainConceptContract } from "./contracts/assistant.js";
|
|
2
|
-
import "./contracts/index.js";
|
|
3
2
|
import { AllowedScopeEnum, AssistantAnswerIRModel, AssistantAnswerSectionModel, AssistantCitationModel, LLMCallEnvelopeModel, RegulatoryContextModel, UserProfileModel } from "./entities/models.js";
|
|
4
|
-
import "./entities/index.js";
|
|
5
3
|
import { AssistantAnswerBlockedEvent, AssistantAnswerDeliveredEvent, AssistantAnswerRequestedEvent } from "./events.js";
|
|
6
4
|
import example from "./example.js";
|
|
7
5
|
import { DemoAssistantHandlers, createDemoAssistantHandlers } from "./handlers/demo.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"react";import"react-hook-form";import"@hookform/resolvers/zod";import"react/jsx-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"./feature-render.js";import"./form-render.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,r as n}from"./schemas.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e}from"../ownership.js";import t from"zod";const n=t.enum([`contractspec:operation`,`contractspec:event`,`contractspec:presentation`,`contractspec:form`,`contractspec:feature`,`contractspec:workflow`,`contractspec:template`,`contractspec:integration`,`contractspec:data-view`,`contractspec:migration`,`contractspec:telemetry`,`contractspec:experiment`,`contractspec:app-config`,`contractspec:knowledge`]),r=t.object({path:t.string().min(1),type:t.string().min(1),content:t.string().optional()}),i=t.object({name:t.string().min(1),type:n,version:t.number().int().nonnegative(),title:t.string().min(1),description:t.string().min(1),meta:t.object({stability:t.enum([e.Idea,e.InCreation,e.Experimental,e.Beta,e.Stable,e.Deprecated]),owners:t.array(t.string().min(1)).default([]),tags:t.array(t.string().min(1)).default([])}),dependencies:t.array(t.string().min(1)).optional(),registryDependencies:t.array(t.string().min(1)).optional(),files:t.array(r).min(1),schema:t.object({input:t.unknown().optional(),output:t.unknown().optional()}).optional()});t.object({$schema:t.string().min(1).optional(),name:t.string().min(1),homepage:t.string().min(1).optional(),items:t.array(i)});export{i,n,r};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import{a as e}from"./registry.js";e([{id:`docs.PUBLISHING`,title:`Publishing ContractSpec Libraries`,summary:`This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).`,kind:`reference`,visibility:`public`,route:`/docs/PUBLISHING`,tags:[`PUBLISHING`],body:`# Publishing ContractSpec Libraries
|
|
2
|
+
|
|
3
|
+
This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).
|
|
4
|
+
|
|
5
|
+
## Release Tracks
|
|
6
|
+
|
|
7
|
+
| Track | Branch | npm Tag | Frequency | Versioning | Use Case |
|
|
8
|
+
|-------|--------|---------|-----------|------------|----------|
|
|
9
|
+
| **Stable** | \`release\` | \`latest\` | Manual | SemVer (e.g., \`1.7.4\`) | Production, external users |
|
|
10
|
+
| **Canary** | \`main\` | \`canary\` | Every Push | Snapshot (e.g., \`1.7.4-canary...\`) | Dev, internal testing |
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
- ✅ \`NPM_TOKEN\` secret is configured in GitHub (owner or automation token with _publish_ scope).
|
|
15
|
+
- ✅ \`GITHUB_TOKEN\` (built-in) has permissions to create PRs (enabled by default in new repos).
|
|
16
|
+
- ✅ For stable releases: \`release\` branch exists and is protected.
|
|
17
|
+
|
|
18
|
+
## Canary Workflow (Automatic)
|
|
19
|
+
|
|
20
|
+
Every commit pushed to \`main\` triggers the \`.github/workflows/publish-canary.yml\` workflow.
|
|
21
|
+
|
|
22
|
+
1. **Trigger**: Push to \`main\`.
|
|
23
|
+
2. **Versioning**: Runs \`changeset version --snapshot canary\` to generate a temporary snapshot version.
|
|
24
|
+
3. **Publish**: Packages are published to npm with the \`canary\` tag using \`changeset publish --tag canary\`.
|
|
25
|
+
|
|
26
|
+
### Consuming Canary Builds
|
|
27
|
+
|
|
28
|
+
To install the latest bleeding-edge version:
|
|
29
|
+
|
|
30
|
+
\`\`\`bash
|
|
31
|
+
npm install @lssm/lib.contracts@canary
|
|
32
|
+
# or
|
|
33
|
+
bun add @lssm/lib.contracts@canary
|
|
34
|
+
\`\`\`
|
|
35
|
+
|
|
36
|
+
## Stable Release Workflow (Manual)
|
|
37
|
+
|
|
38
|
+
Stable releases are managed via the \`release\` branch using the standard [Changesets Action](https://github.com/changesets/action).
|
|
39
|
+
|
|
40
|
+
1. **Develop on \`main\`**: Create features and fixes.
|
|
41
|
+
2. **Add Changesets**: Run \`bun changeset\` to document changes and impact (major/minor/patch).
|
|
42
|
+
3. **Merge to \`release\`**: When ready to ship, open a PR from \`main\` to \`release\` or merge manually.
|
|
43
|
+
4. **"Version Packages" PR**:
|
|
44
|
+
- The GitHub Action detects new changesets and automatically creates a Pull Request titled **"Version Packages"**.
|
|
45
|
+
- This PR contains the version bumps and updated \`CHANGELOG.md\` files.
|
|
46
|
+
5. **Merge & Publish**:
|
|
47
|
+
- Review and merge the "Version Packages" PR.
|
|
48
|
+
- The Action runs again, detects the versions have been bumped, builds the libraries, and publishes them to npm with the \`latest\` tag.
|
|
49
|
+
|
|
50
|
+
### Publishing Steps
|
|
51
|
+
|
|
52
|
+
1. Ensure all changesets are present on \`main\`.
|
|
53
|
+
2. Merge \`main\` into \`release\`:
|
|
54
|
+
\`\`\`bash
|
|
55
|
+
git checkout release
|
|
56
|
+
git pull origin release
|
|
57
|
+
git merge main
|
|
58
|
+
git push origin release
|
|
59
|
+
\`\`\`
|
|
60
|
+
3. Go to GitHub Pull Requests. You will see a **"Version Packages"** PR created by the bot.
|
|
61
|
+
4. Merge that PR.
|
|
62
|
+
5. The release is now live on npm!
|
|
63
|
+
|
|
64
|
+
## Manual Verification (Optional)
|
|
65
|
+
|
|
66
|
+
Before publishing a new version you can run:
|
|
67
|
+
|
|
68
|
+
\`\`\`bash
|
|
69
|
+
bun run build:not-apps
|
|
70
|
+
npx npm-packlist --json packages/libs/contracts
|
|
71
|
+
\`\`\`
|
|
72
|
+
|
|
73
|
+
## Rollback
|
|
74
|
+
|
|
75
|
+
If a publish fails mid-way, re-run the workflow once the issue is fixed. Already published packages are skipped automatically. Use \`npm deprecate <package>@<version>\` if we need to warn consumers about a broken release.
|
|
76
|
+
`}]);
|