@contractspec/example.locale-jurisdiction-gate 3.7.16 → 3.7.18
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.log +66 -66
- package/CHANGELOG.md +22 -0
- package/dist/browser/docs/index.js +3 -27
- package/dist/browser/docs/locale-jurisdiction-gate.docblock.js +3 -27
- package/dist/browser/entities/index.js +1 -110
- package/dist/browser/entities/models.js +1 -110
- package/dist/browser/events.js +1 -73
- package/dist/browser/example.js +1 -35
- package/dist/browser/forms/assistant-context.form.js +1 -213
- package/dist/browser/forms/index.js +1 -213
- package/dist/browser/handlers/demo.handlers.js +2 -152
- package/dist/browser/handlers/index.js +2 -152
- package/dist/browser/index.js +4 -844
- package/dist/browser/locale-jurisdiction-gate.feature.js +1 -105
- package/dist/browser/operations/assistant.js +1 -192
- package/dist/browser/operations/index.js +1 -192
- package/dist/browser/policy/assistant-gate.policy.js +1 -62
- package/dist/browser/policy/guard.js +2 -73
- package/dist/browser/policy/index.js +2 -134
- package/dist/browser/translations/assistant-gate.en-GB.translation.js +1 -48
- package/dist/browser/translations/assistant-gate.en-US.translation.js +1 -50
- package/dist/browser/translations/assistant-gate.fr-FR.translation.js +1 -52
- package/dist/browser/translations/index.js +1 -148
- package/dist/docs/index.js +3 -27
- package/dist/docs/locale-jurisdiction-gate.docblock.js +3 -27
- package/dist/entities/index.js +1 -110
- package/dist/entities/models.js +1 -110
- package/dist/events.js +1 -73
- package/dist/example.js +1 -35
- package/dist/forms/assistant-context.form.js +1 -213
- package/dist/forms/index.js +1 -213
- package/dist/handlers/demo.handlers.js +2 -152
- package/dist/handlers/index.js +2 -152
- package/dist/index.js +4 -844
- package/dist/locale-jurisdiction-gate.feature.js +1 -105
- package/dist/node/docs/index.js +3 -27
- package/dist/node/docs/locale-jurisdiction-gate.docblock.js +3 -27
- package/dist/node/entities/index.js +1 -110
- package/dist/node/entities/models.js +1 -110
- package/dist/node/events.js +1 -73
- package/dist/node/example.js +1 -35
- package/dist/node/forms/assistant-context.form.js +1 -213
- package/dist/node/forms/index.js +1 -213
- package/dist/node/handlers/demo.handlers.js +2 -152
- package/dist/node/handlers/index.js +2 -152
- package/dist/node/index.js +4 -844
- package/dist/node/locale-jurisdiction-gate.feature.js +1 -105
- package/dist/node/operations/assistant.js +1 -192
- package/dist/node/operations/index.js +1 -192
- package/dist/node/policy/assistant-gate.policy.js +1 -62
- package/dist/node/policy/guard.js +2 -73
- package/dist/node/policy/index.js +2 -134
- package/dist/node/translations/assistant-gate.en-GB.translation.js +1 -48
- package/dist/node/translations/assistant-gate.en-US.translation.js +1 -50
- package/dist/node/translations/assistant-gate.fr-FR.translation.js +1 -52
- package/dist/node/translations/index.js +1 -148
- package/dist/operations/assistant.js +1 -192
- package/dist/operations/index.js +1 -192
- package/dist/policy/assistant-gate.policy.js +1 -62
- package/dist/policy/guard.js +2 -73
- package/dist/policy/index.js +2 -134
- package/dist/translations/assistant-gate.en-GB.translation.js +1 -48
- package/dist/translations/assistant-gate.en-US.translation.js +1 -50
- package/dist/translations/assistant-gate.fr-FR.translation.js +1 -52
- package/dist/translations/index.js +1 -148
- package/package.json +7 -7
|
@@ -1,134 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
function err(code, message) {
|
|
4
|
-
return { code, message };
|
|
5
|
-
}
|
|
6
|
-
function validateEnvelope(envelope) {
|
|
7
|
-
if (!envelope.locale || !SUPPORTED_LOCALES.has(envelope.locale)) {
|
|
8
|
-
return {
|
|
9
|
-
ok: false,
|
|
10
|
-
error: err("LOCALE_REQUIRED", "locale is required and must be supported")
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
if (!envelope.regulatoryContext?.jurisdiction) {
|
|
14
|
-
return {
|
|
15
|
-
ok: false,
|
|
16
|
-
error: err("JURISDICTION_REQUIRED", "jurisdiction is required")
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
if (!envelope.kbSnapshotId) {
|
|
20
|
-
return {
|
|
21
|
-
ok: false,
|
|
22
|
-
error: err("KB_SNAPSHOT_REQUIRED", "kbSnapshotId is required")
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
if (!envelope.allowedScope) {
|
|
26
|
-
return {
|
|
27
|
-
ok: false,
|
|
28
|
-
error: err("SCOPE_VIOLATION", "allowedScope is required")
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return { ok: true, value: envelope };
|
|
32
|
-
}
|
|
33
|
-
function enforceCitations(answer) {
|
|
34
|
-
const citations = answer.citations ?? [];
|
|
35
|
-
if (!Array.isArray(citations) || citations.length === 0) {
|
|
36
|
-
return {
|
|
37
|
-
ok: false,
|
|
38
|
-
error: err("CITATIONS_REQUIRED", "answers must include at least one citation")
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
return { ok: true, value: answer };
|
|
42
|
-
}
|
|
43
|
-
var EDUCATION_ONLY_FORBIDDEN_PATTERNS = [
|
|
44
|
-
/\b(buy|sell)\b/i,
|
|
45
|
-
/\b(should\s+buy|should\s+sell)\b/i,
|
|
46
|
-
/\b(guarantee(d)?|promise(d)?)\b/i
|
|
47
|
-
];
|
|
48
|
-
function enforceAllowedScope(allowedScope, answer) {
|
|
49
|
-
if (!allowedScope) {
|
|
50
|
-
return {
|
|
51
|
-
ok: false,
|
|
52
|
-
error: err("SCOPE_VIOLATION", "allowedScope is required")
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
if (allowedScope !== "education_only") {
|
|
56
|
-
return { ok: true, value: answer };
|
|
57
|
-
}
|
|
58
|
-
const bodies = (answer.sections ?? []).map((s) => s.body).join(`
|
|
59
|
-
`);
|
|
60
|
-
const violations = EDUCATION_ONLY_FORBIDDEN_PATTERNS.some((re) => re.test(bodies));
|
|
61
|
-
if (violations) {
|
|
62
|
-
return {
|
|
63
|
-
ok: false,
|
|
64
|
-
error: err("SCOPE_VIOLATION", "answer violates education_only scope (contains actionable or promotional language)")
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
return { ok: true, value: answer };
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// src/policy/assistant-gate.policy.ts
|
|
71
|
-
import {
|
|
72
|
-
OwnersEnum,
|
|
73
|
-
StabilityEnum,
|
|
74
|
-
TagsEnum
|
|
75
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
76
|
-
import { definePolicy } from "@contractspec/lib.contracts-spec/policy";
|
|
77
|
-
var AssistantGatePolicy = definePolicy({
|
|
78
|
-
meta: {
|
|
79
|
-
key: "locale-jurisdiction-gate.policy.gate",
|
|
80
|
-
version: "1.0.0",
|
|
81
|
-
title: "Assistant Locale and Jurisdiction Gate",
|
|
82
|
-
description: "Requires explicit locale, jurisdiction, knowledge snapshot, and allowed scope before assistant requests may proceed.",
|
|
83
|
-
domain: "assistant",
|
|
84
|
-
scope: "operation",
|
|
85
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
86
|
-
tags: [TagsEnum.I18n, "assistant", "policy", "jurisdiction"],
|
|
87
|
-
stability: StabilityEnum.Experimental
|
|
88
|
-
},
|
|
89
|
-
rules: [
|
|
90
|
-
{
|
|
91
|
-
effect: "deny",
|
|
92
|
-
actions: ["assistant.answer", "assistant.explainConcept"],
|
|
93
|
-
resource: { type: "assistant-call" },
|
|
94
|
-
conditions: [
|
|
95
|
-
{
|
|
96
|
-
expression: "!context.locale || !context.jurisdiction || !context.kbSnapshotId || !context.allowedScope"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
reason: "Assistant requests fail closed until locale, jurisdiction, kbSnapshotId, and allowedScope are explicit."
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
effect: "deny",
|
|
103
|
-
actions: ["assistant.answer", "assistant.explainConcept"],
|
|
104
|
-
resource: { type: "assistant-call" },
|
|
105
|
-
conditions: [
|
|
106
|
-
{
|
|
107
|
-
expression: "!['en-US', 'en-GB', 'fr-FR'].includes(context.locale ?? '')"
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
reason: "Only the explicitly reviewed assistant locales are permitted."
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
effect: "allow",
|
|
114
|
-
actions: ["assistant.answer", "assistant.explainConcept"],
|
|
115
|
-
resource: { type: "assistant-call" },
|
|
116
|
-
conditions: [
|
|
117
|
-
{
|
|
118
|
-
expression: "['en-US', 'en-GB', 'fr-FR'].includes(context.locale ?? '') && !!context.jurisdiction && !!context.kbSnapshotId && !!context.allowedScope"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
reason: "Explicit context is present, so the request may continue to citation and scope validation."
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
pii: {
|
|
125
|
-
fields: ["kbSnapshotId"],
|
|
126
|
-
retentionDays: 30
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
export {
|
|
130
|
-
validateEnvelope,
|
|
131
|
-
enforceCitations,
|
|
132
|
-
enforceAllowedScope,
|
|
133
|
-
AssistantGatePolicy
|
|
134
|
-
};
|
|
1
|
+
var f=new Set(["en-US","en-GB","fr-FR"]);function t(r,I){return{code:r,message:I}}function u(r){if(!r.locale||!f.has(r.locale))return{ok:!1,error:t("LOCALE_REQUIRED","locale is required and must be supported")};if(!r.regulatoryContext?.jurisdiction)return{ok:!1,error:t("JURISDICTION_REQUIRED","jurisdiction is required")};if(!r.kbSnapshotId)return{ok:!1,error:t("KB_SNAPSHOT_REQUIRED","kbSnapshotId is required")};if(!r.allowedScope)return{ok:!1,error:t("SCOPE_VIOLATION","allowedScope is required")};return{ok:!0,value:r}}function A(r){let I=r.citations??[];if(!Array.isArray(I)||I.length===0)return{ok:!1,error:t("CITATIONS_REQUIRED","answers must include at least one citation")};return{ok:!0,value:r}}var _=[/\b(buy|sell)\b/i,/\b(should\s+buy|should\s+sell)\b/i,/\b(guarantee(d)?|promise(d)?)\b/i];function C(r,I){if(!r)return{ok:!1,error:t("SCOPE_VIOLATION","allowedScope is required")};if(r!=="education_only")return{ok:!0,value:I};let x=(I.sections??[]).map((R)=>R.body).join(`
|
|
2
|
+
`);if(_.some((R)=>R.test(x)))return{ok:!1,error:t("SCOPE_VIOLATION","answer violates education_only scope (contains actionable or promotional language)")};return{ok:!0,value:I}}import{OwnersEnum as E,StabilityEnum as Q,TagsEnum as G}from"@contractspec/lib.contracts-spec/ownership";import{definePolicy as U}from"@contractspec/lib.contracts-spec/policy";var H=U({meta:{key:"locale-jurisdiction-gate.policy.gate",version:"1.0.0",title:"Assistant Locale and Jurisdiction Gate",description:"Requires explicit locale, jurisdiction, knowledge snapshot, and allowed scope before assistant requests may proceed.",domain:"assistant",scope:"operation",owners:[E.PlatformFinance],tags:[G.I18n,"assistant","policy","jurisdiction"],stability:Q.Experimental},rules:[{effect:"deny",actions:["assistant.answer","assistant.explainConcept"],resource:{type:"assistant-call"},conditions:[{expression:"!context.locale || !context.jurisdiction || !context.kbSnapshotId || !context.allowedScope"}],reason:"Assistant requests fail closed until locale, jurisdiction, kbSnapshotId, and allowedScope are explicit."},{effect:"deny",actions:["assistant.answer","assistant.explainConcept"],resource:{type:"assistant-call"},conditions:[{expression:"!['en-US', 'en-GB', 'fr-FR'].includes(context.locale ?? '')"}],reason:"Only the explicitly reviewed assistant locales are permitted."},{effect:"allow",actions:["assistant.answer","assistant.explainConcept"],resource:{type:"assistant-call"},conditions:[{expression:"['en-US', 'en-GB', 'fr-FR'].includes(context.locale ?? '') && !!context.jurisdiction && !!context.kbSnapshotId && !!context.allowedScope"}],reason:"Explicit context is present, so the request may continue to citation and scope validation."}],pii:{fields:["kbSnapshotId"],retentionDays:30}});export{u as validateEnvelope,A as enforceCitations,C as enforceAllowedScope,H as AssistantGatePolicy};
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
OwnersEnum,
|
|
4
|
-
StabilityEnum,
|
|
5
|
-
TagsEnum
|
|
6
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
7
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations/spec";
|
|
8
|
-
var AssistantGateMessagesEnGb = defineTranslation({
|
|
9
|
-
meta: {
|
|
10
|
-
key: "locale-jurisdiction-gate.translation.assistant-gate.en-GB",
|
|
11
|
-
version: "1.0.0",
|
|
12
|
-
domain: "assistant",
|
|
13
|
-
description: "British English messages for the assistant locale and jurisdiction gate.",
|
|
14
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
15
|
-
stability: StabilityEnum.Experimental,
|
|
16
|
-
tags: [TagsEnum.I18n, "assistant", "policy"]
|
|
17
|
-
},
|
|
18
|
-
locale: "en-GB",
|
|
19
|
-
fallback: "en-US",
|
|
20
|
-
messages: {
|
|
21
|
-
"assistantGate.locale.label": { value: "Locale" },
|
|
22
|
-
"assistantGate.locale.description": {
|
|
23
|
-
value: "Select the reviewed locale for the assistant response."
|
|
24
|
-
},
|
|
25
|
-
"assistantGate.jurisdiction.label": { value: "Jurisdiction" },
|
|
26
|
-
"assistantGate.jurisdiction.placeholder": { value: "UK-FCA" },
|
|
27
|
-
"assistantGate.kbSnapshotId.label": { value: "Knowledge snapshot ID" },
|
|
28
|
-
"assistantGate.kbSnapshotId.placeholder": {
|
|
29
|
-
value: "kb_2026_03_20_policy_reviewed"
|
|
30
|
-
},
|
|
31
|
-
"assistantGate.allowedScope.label": { value: "Permitted scope" },
|
|
32
|
-
"assistantGate.allowedScope.educationOnly": {
|
|
33
|
-
value: "Educational content only"
|
|
34
|
-
},
|
|
35
|
-
"assistantGate.allowedScope.genericInfo": { value: "General information" },
|
|
36
|
-
"assistantGate.allowedScope.escalationRequired": {
|
|
37
|
-
value: "Escalation required"
|
|
38
|
-
},
|
|
39
|
-
"assistantGate.question.label": { value: "Question" },
|
|
40
|
-
"assistantGate.question.placeholder": {
|
|
41
|
-
value: "What may I say about this product in the selected jurisdiction?"
|
|
42
|
-
},
|
|
43
|
-
"assistantGate.submit.label": { value: "Generate response" }
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
AssistantGateMessagesEnGb
|
|
48
|
-
};
|
|
1
|
+
import{OwnersEnum as h,StabilityEnum as j,TagsEnum as k}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as q}from"@contractspec/lib.contracts-spec/translations/spec";var z=q({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.en-GB",version:"1.0.0",domain:"assistant",description:"British English messages for the assistant locale and jurisdiction gate.",owners:[h.PlatformFinance],stability:j.Experimental,tags:[k.I18n,"assistant","policy"]},locale:"en-GB",fallback:"en-US",messages:{"assistantGate.locale.label":{value:"Locale"},"assistantGate.locale.description":{value:"Select the reviewed locale for the assistant response."},"assistantGate.jurisdiction.label":{value:"Jurisdiction"},"assistantGate.jurisdiction.placeholder":{value:"UK-FCA"},"assistantGate.kbSnapshotId.label":{value:"Knowledge snapshot ID"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Permitted scope"},"assistantGate.allowedScope.educationOnly":{value:"Educational content only"},"assistantGate.allowedScope.genericInfo":{value:"General information"},"assistantGate.allowedScope.escalationRequired":{value:"Escalation required"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"What may I say about this product in the selected jurisdiction?"},"assistantGate.submit.label":{value:"Generate response"}}});export{z as AssistantGateMessagesEnGb};
|
|
@@ -1,50 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
OwnersEnum,
|
|
4
|
-
StabilityEnum,
|
|
5
|
-
TagsEnum
|
|
6
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
7
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations/spec";
|
|
8
|
-
var AssistantGateMessagesEnUs = defineTranslation({
|
|
9
|
-
meta: {
|
|
10
|
-
key: "locale-jurisdiction-gate.translation.assistant-gate.en-US",
|
|
11
|
-
version: "1.0.0",
|
|
12
|
-
domain: "assistant",
|
|
13
|
-
description: "US English messages for the assistant locale and jurisdiction gate.",
|
|
14
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
15
|
-
stability: StabilityEnum.Experimental,
|
|
16
|
-
tags: [TagsEnum.I18n, "assistant", "policy"]
|
|
17
|
-
},
|
|
18
|
-
locale: "en-US",
|
|
19
|
-
messages: {
|
|
20
|
-
"assistantGate.locale.label": { value: "Locale" },
|
|
21
|
-
"assistantGate.locale.description": {
|
|
22
|
-
value: "Choose the reviewed locale for the assistant answer."
|
|
23
|
-
},
|
|
24
|
-
"assistantGate.locale.enUs": { value: "English (United States)" },
|
|
25
|
-
"assistantGate.locale.enGb": { value: "English (United Kingdom)" },
|
|
26
|
-
"assistantGate.locale.frFr": { value: "French (France)" },
|
|
27
|
-
"assistantGate.jurisdiction.label": { value: "Jurisdiction" },
|
|
28
|
-
"assistantGate.jurisdiction.placeholder": { value: "US-SEC" },
|
|
29
|
-
"assistantGate.kbSnapshotId.label": { value: "Knowledge snapshot ID" },
|
|
30
|
-
"assistantGate.kbSnapshotId.placeholder": {
|
|
31
|
-
value: "kb_2026_03_20_policy_reviewed"
|
|
32
|
-
},
|
|
33
|
-
"assistantGate.allowedScope.label": { value: "Allowed scope" },
|
|
34
|
-
"assistantGate.allowedScope.educationOnly": {
|
|
35
|
-
value: "Educational content only"
|
|
36
|
-
},
|
|
37
|
-
"assistantGate.allowedScope.genericInfo": { value: "Generic information" },
|
|
38
|
-
"assistantGate.allowedScope.escalationRequired": {
|
|
39
|
-
value: "Escalation required"
|
|
40
|
-
},
|
|
41
|
-
"assistantGate.question.label": { value: "Question" },
|
|
42
|
-
"assistantGate.question.placeholder": {
|
|
43
|
-
value: "What can I say about this product in the selected jurisdiction?"
|
|
44
|
-
},
|
|
45
|
-
"assistantGate.submit.label": { value: "Generate answer" }
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
AssistantGateMessagesEnUs
|
|
50
|
-
};
|
|
1
|
+
import{OwnersEnum as h,StabilityEnum as j,TagsEnum as k}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as q}from"@contractspec/lib.contracts-spec/translations/spec";var z=q({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.en-US",version:"1.0.0",domain:"assistant",description:"US English messages for the assistant locale and jurisdiction gate.",owners:[h.PlatformFinance],stability:j.Experimental,tags:[k.I18n,"assistant","policy"]},locale:"en-US",messages:{"assistantGate.locale.label":{value:"Locale"},"assistantGate.locale.description":{value:"Choose the reviewed locale for the assistant answer."},"assistantGate.locale.enUs":{value:"English (United States)"},"assistantGate.locale.enGb":{value:"English (United Kingdom)"},"assistantGate.locale.frFr":{value:"French (France)"},"assistantGate.jurisdiction.label":{value:"Jurisdiction"},"assistantGate.jurisdiction.placeholder":{value:"US-SEC"},"assistantGate.kbSnapshotId.label":{value:"Knowledge snapshot ID"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Allowed scope"},"assistantGate.allowedScope.educationOnly":{value:"Educational content only"},"assistantGate.allowedScope.genericInfo":{value:"Generic information"},"assistantGate.allowedScope.escalationRequired":{value:"Escalation required"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"What can I say about this product in the selected jurisdiction?"},"assistantGate.submit.label":{value:"Generate answer"}}});export{z as AssistantGateMessagesEnUs};
|
|
@@ -1,52 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
OwnersEnum,
|
|
4
|
-
StabilityEnum,
|
|
5
|
-
TagsEnum
|
|
6
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
7
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations/spec";
|
|
8
|
-
var AssistantGateMessagesFrFr = defineTranslation({
|
|
9
|
-
meta: {
|
|
10
|
-
key: "locale-jurisdiction-gate.translation.assistant-gate.fr-FR",
|
|
11
|
-
version: "1.0.0",
|
|
12
|
-
domain: "assistant",
|
|
13
|
-
description: "French messages for the assistant locale and jurisdiction gate.",
|
|
14
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
15
|
-
stability: StabilityEnum.Experimental,
|
|
16
|
-
tags: [TagsEnum.I18n, "assistant", "policy"]
|
|
17
|
-
},
|
|
18
|
-
locale: "fr-FR",
|
|
19
|
-
fallback: "en-US",
|
|
20
|
-
messages: {
|
|
21
|
-
"assistantGate.locale.label": { value: "Langue" },
|
|
22
|
-
"assistantGate.locale.description": {
|
|
23
|
-
value: "Sélectionnez la langue validée pour la réponse de l'assistant."
|
|
24
|
-
},
|
|
25
|
-
"assistantGate.jurisdiction.label": { value: "Juridiction" },
|
|
26
|
-
"assistantGate.jurisdiction.placeholder": { value: "FR-AMF" },
|
|
27
|
-
"assistantGate.kbSnapshotId.label": {
|
|
28
|
-
value: "Identifiant du snapshot documentaire"
|
|
29
|
-
},
|
|
30
|
-
"assistantGate.kbSnapshotId.placeholder": {
|
|
31
|
-
value: "kb_2026_03_20_policy_reviewed"
|
|
32
|
-
},
|
|
33
|
-
"assistantGate.allowedScope.label": { value: "Périmètre autorisé" },
|
|
34
|
-
"assistantGate.allowedScope.educationOnly": {
|
|
35
|
-
value: "Contenu éducatif uniquement"
|
|
36
|
-
},
|
|
37
|
-
"assistantGate.allowedScope.genericInfo": {
|
|
38
|
-
value: "Information générale"
|
|
39
|
-
},
|
|
40
|
-
"assistantGate.allowedScope.escalationRequired": {
|
|
41
|
-
value: "Escalade obligatoire"
|
|
42
|
-
},
|
|
43
|
-
"assistantGate.question.label": { value: "Question" },
|
|
44
|
-
"assistantGate.question.placeholder": {
|
|
45
|
-
value: "Que puis-je dire sur ce produit dans la juridiction sélectionnée ?"
|
|
46
|
-
},
|
|
47
|
-
"assistantGate.submit.label": { value: "Générer la réponse" }
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
AssistantGateMessagesFrFr
|
|
52
|
-
};
|
|
1
|
+
import{OwnersEnum as h,StabilityEnum as j,TagsEnum as k}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as q}from"@contractspec/lib.contracts-spec/translations/spec";var z=q({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.fr-FR",version:"1.0.0",domain:"assistant",description:"French messages for the assistant locale and jurisdiction gate.",owners:[h.PlatformFinance],stability:j.Experimental,tags:[k.I18n,"assistant","policy"]},locale:"fr-FR",fallback:"en-US",messages:{"assistantGate.locale.label":{value:"Langue"},"assistantGate.locale.description":{value:"Sélectionnez la langue validée pour la réponse de l'assistant."},"assistantGate.jurisdiction.label":{value:"Juridiction"},"assistantGate.jurisdiction.placeholder":{value:"FR-AMF"},"assistantGate.kbSnapshotId.label":{value:"Identifiant du snapshot documentaire"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Périmètre autorisé"},"assistantGate.allowedScope.educationOnly":{value:"Contenu éducatif uniquement"},"assistantGate.allowedScope.genericInfo":{value:"Information générale"},"assistantGate.allowedScope.escalationRequired":{value:"Escalade obligatoire"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"Que puis-je dire sur ce produit dans la juridiction sélectionnée ?"},"assistantGate.submit.label":{value:"Générer la réponse"}}});export{z as AssistantGateMessagesFrFr};
|
|
@@ -1,148 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
OwnersEnum,
|
|
4
|
-
StabilityEnum,
|
|
5
|
-
TagsEnum
|
|
6
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
7
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations/spec";
|
|
8
|
-
var AssistantGateMessagesEnGb = defineTranslation({
|
|
9
|
-
meta: {
|
|
10
|
-
key: "locale-jurisdiction-gate.translation.assistant-gate.en-GB",
|
|
11
|
-
version: "1.0.0",
|
|
12
|
-
domain: "assistant",
|
|
13
|
-
description: "British English messages for the assistant locale and jurisdiction gate.",
|
|
14
|
-
owners: [OwnersEnum.PlatformFinance],
|
|
15
|
-
stability: StabilityEnum.Experimental,
|
|
16
|
-
tags: [TagsEnum.I18n, "assistant", "policy"]
|
|
17
|
-
},
|
|
18
|
-
locale: "en-GB",
|
|
19
|
-
fallback: "en-US",
|
|
20
|
-
messages: {
|
|
21
|
-
"assistantGate.locale.label": { value: "Locale" },
|
|
22
|
-
"assistantGate.locale.description": {
|
|
23
|
-
value: "Select the reviewed locale for the assistant response."
|
|
24
|
-
},
|
|
25
|
-
"assistantGate.jurisdiction.label": { value: "Jurisdiction" },
|
|
26
|
-
"assistantGate.jurisdiction.placeholder": { value: "UK-FCA" },
|
|
27
|
-
"assistantGate.kbSnapshotId.label": { value: "Knowledge snapshot ID" },
|
|
28
|
-
"assistantGate.kbSnapshotId.placeholder": {
|
|
29
|
-
value: "kb_2026_03_20_policy_reviewed"
|
|
30
|
-
},
|
|
31
|
-
"assistantGate.allowedScope.label": { value: "Permitted scope" },
|
|
32
|
-
"assistantGate.allowedScope.educationOnly": {
|
|
33
|
-
value: "Educational content only"
|
|
34
|
-
},
|
|
35
|
-
"assistantGate.allowedScope.genericInfo": { value: "General information" },
|
|
36
|
-
"assistantGate.allowedScope.escalationRequired": {
|
|
37
|
-
value: "Escalation required"
|
|
38
|
-
},
|
|
39
|
-
"assistantGate.question.label": { value: "Question" },
|
|
40
|
-
"assistantGate.question.placeholder": {
|
|
41
|
-
value: "What may I say about this product in the selected jurisdiction?"
|
|
42
|
-
},
|
|
43
|
-
"assistantGate.submit.label": { value: "Generate response" }
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
// src/translations/assistant-gate.en-US.translation.ts
|
|
48
|
-
import {
|
|
49
|
-
OwnersEnum as OwnersEnum2,
|
|
50
|
-
StabilityEnum as StabilityEnum2,
|
|
51
|
-
TagsEnum as TagsEnum2
|
|
52
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
53
|
-
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations/spec";
|
|
54
|
-
var AssistantGateMessagesEnUs = defineTranslation2({
|
|
55
|
-
meta: {
|
|
56
|
-
key: "locale-jurisdiction-gate.translation.assistant-gate.en-US",
|
|
57
|
-
version: "1.0.0",
|
|
58
|
-
domain: "assistant",
|
|
59
|
-
description: "US English messages for the assistant locale and jurisdiction gate.",
|
|
60
|
-
owners: [OwnersEnum2.PlatformFinance],
|
|
61
|
-
stability: StabilityEnum2.Experimental,
|
|
62
|
-
tags: [TagsEnum2.I18n, "assistant", "policy"]
|
|
63
|
-
},
|
|
64
|
-
locale: "en-US",
|
|
65
|
-
messages: {
|
|
66
|
-
"assistantGate.locale.label": { value: "Locale" },
|
|
67
|
-
"assistantGate.locale.description": {
|
|
68
|
-
value: "Choose the reviewed locale for the assistant answer."
|
|
69
|
-
},
|
|
70
|
-
"assistantGate.locale.enUs": { value: "English (United States)" },
|
|
71
|
-
"assistantGate.locale.enGb": { value: "English (United Kingdom)" },
|
|
72
|
-
"assistantGate.locale.frFr": { value: "French (France)" },
|
|
73
|
-
"assistantGate.jurisdiction.label": { value: "Jurisdiction" },
|
|
74
|
-
"assistantGate.jurisdiction.placeholder": { value: "US-SEC" },
|
|
75
|
-
"assistantGate.kbSnapshotId.label": { value: "Knowledge snapshot ID" },
|
|
76
|
-
"assistantGate.kbSnapshotId.placeholder": {
|
|
77
|
-
value: "kb_2026_03_20_policy_reviewed"
|
|
78
|
-
},
|
|
79
|
-
"assistantGate.allowedScope.label": { value: "Allowed scope" },
|
|
80
|
-
"assistantGate.allowedScope.educationOnly": {
|
|
81
|
-
value: "Educational content only"
|
|
82
|
-
},
|
|
83
|
-
"assistantGate.allowedScope.genericInfo": { value: "Generic information" },
|
|
84
|
-
"assistantGate.allowedScope.escalationRequired": {
|
|
85
|
-
value: "Escalation required"
|
|
86
|
-
},
|
|
87
|
-
"assistantGate.question.label": { value: "Question" },
|
|
88
|
-
"assistantGate.question.placeholder": {
|
|
89
|
-
value: "What can I say about this product in the selected jurisdiction?"
|
|
90
|
-
},
|
|
91
|
-
"assistantGate.submit.label": { value: "Generate answer" }
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
// src/translations/assistant-gate.fr-FR.translation.ts
|
|
96
|
-
import {
|
|
97
|
-
OwnersEnum as OwnersEnum3,
|
|
98
|
-
StabilityEnum as StabilityEnum3,
|
|
99
|
-
TagsEnum as TagsEnum3
|
|
100
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
101
|
-
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations/spec";
|
|
102
|
-
var AssistantGateMessagesFrFr = defineTranslation3({
|
|
103
|
-
meta: {
|
|
104
|
-
key: "locale-jurisdiction-gate.translation.assistant-gate.fr-FR",
|
|
105
|
-
version: "1.0.0",
|
|
106
|
-
domain: "assistant",
|
|
107
|
-
description: "French messages for the assistant locale and jurisdiction gate.",
|
|
108
|
-
owners: [OwnersEnum3.PlatformFinance],
|
|
109
|
-
stability: StabilityEnum3.Experimental,
|
|
110
|
-
tags: [TagsEnum3.I18n, "assistant", "policy"]
|
|
111
|
-
},
|
|
112
|
-
locale: "fr-FR",
|
|
113
|
-
fallback: "en-US",
|
|
114
|
-
messages: {
|
|
115
|
-
"assistantGate.locale.label": { value: "Langue" },
|
|
116
|
-
"assistantGate.locale.description": {
|
|
117
|
-
value: "Sélectionnez la langue validée pour la réponse de l'assistant."
|
|
118
|
-
},
|
|
119
|
-
"assistantGate.jurisdiction.label": { value: "Juridiction" },
|
|
120
|
-
"assistantGate.jurisdiction.placeholder": { value: "FR-AMF" },
|
|
121
|
-
"assistantGate.kbSnapshotId.label": {
|
|
122
|
-
value: "Identifiant du snapshot documentaire"
|
|
123
|
-
},
|
|
124
|
-
"assistantGate.kbSnapshotId.placeholder": {
|
|
125
|
-
value: "kb_2026_03_20_policy_reviewed"
|
|
126
|
-
},
|
|
127
|
-
"assistantGate.allowedScope.label": { value: "Périmètre autorisé" },
|
|
128
|
-
"assistantGate.allowedScope.educationOnly": {
|
|
129
|
-
value: "Contenu éducatif uniquement"
|
|
130
|
-
},
|
|
131
|
-
"assistantGate.allowedScope.genericInfo": {
|
|
132
|
-
value: "Information générale"
|
|
133
|
-
},
|
|
134
|
-
"assistantGate.allowedScope.escalationRequired": {
|
|
135
|
-
value: "Escalade obligatoire"
|
|
136
|
-
},
|
|
137
|
-
"assistantGate.question.label": { value: "Question" },
|
|
138
|
-
"assistantGate.question.placeholder": {
|
|
139
|
-
value: "Que puis-je dire sur ce produit dans la juridiction sélectionnée ?"
|
|
140
|
-
},
|
|
141
|
-
"assistantGate.submit.label": { value: "Générer la réponse" }
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
export {
|
|
145
|
-
AssistantGateMessagesFrFr,
|
|
146
|
-
AssistantGateMessagesEnUs,
|
|
147
|
-
AssistantGateMessagesEnGb
|
|
148
|
-
};
|
|
1
|
+
import{OwnersEnum as h,StabilityEnum as j,TagsEnum as k}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as q}from"@contractspec/lib.contracts-spec/translations/spec";var J=q({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.en-GB",version:"1.0.0",domain:"assistant",description:"British English messages for the assistant locale and jurisdiction gate.",owners:[h.PlatformFinance],stability:j.Experimental,tags:[k.I18n,"assistant","policy"]},locale:"en-GB",fallback:"en-US",messages:{"assistantGate.locale.label":{value:"Locale"},"assistantGate.locale.description":{value:"Select the reviewed locale for the assistant response."},"assistantGate.jurisdiction.label":{value:"Jurisdiction"},"assistantGate.jurisdiction.placeholder":{value:"UK-FCA"},"assistantGate.kbSnapshotId.label":{value:"Knowledge snapshot ID"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Permitted scope"},"assistantGate.allowedScope.educationOnly":{value:"Educational content only"},"assistantGate.allowedScope.genericInfo":{value:"General information"},"assistantGate.allowedScope.escalationRequired":{value:"Escalation required"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"What may I say about this product in the selected jurisdiction?"},"assistantGate.submit.label":{value:"Generate response"}}});import{OwnersEnum as v,StabilityEnum as x,TagsEnum as z}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as A}from"@contractspec/lib.contracts-spec/translations/spec";var N=A({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.en-US",version:"1.0.0",domain:"assistant",description:"US English messages for the assistant locale and jurisdiction gate.",owners:[v.PlatformFinance],stability:x.Experimental,tags:[z.I18n,"assistant","policy"]},locale:"en-US",messages:{"assistantGate.locale.label":{value:"Locale"},"assistantGate.locale.description":{value:"Choose the reviewed locale for the assistant answer."},"assistantGate.locale.enUs":{value:"English (United States)"},"assistantGate.locale.enGb":{value:"English (United Kingdom)"},"assistantGate.locale.frFr":{value:"French (France)"},"assistantGate.jurisdiction.label":{value:"Jurisdiction"},"assistantGate.jurisdiction.placeholder":{value:"US-SEC"},"assistantGate.kbSnapshotId.label":{value:"Knowledge snapshot ID"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Allowed scope"},"assistantGate.allowedScope.educationOnly":{value:"Educational content only"},"assistantGate.allowedScope.genericInfo":{value:"Generic information"},"assistantGate.allowedScope.escalationRequired":{value:"Escalation required"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"What can I say about this product in the selected jurisdiction?"},"assistantGate.submit.label":{value:"Generate answer"}}});import{OwnersEnum as B,StabilityEnum as C,TagsEnum as D}from"@contractspec/lib.contracts-spec/ownership";import{defineTranslation as G}from"@contractspec/lib.contracts-spec/translations/spec";var V=G({meta:{key:"locale-jurisdiction-gate.translation.assistant-gate.fr-FR",version:"1.0.0",domain:"assistant",description:"French messages for the assistant locale and jurisdiction gate.",owners:[B.PlatformFinance],stability:C.Experimental,tags:[D.I18n,"assistant","policy"]},locale:"fr-FR",fallback:"en-US",messages:{"assistantGate.locale.label":{value:"Langue"},"assistantGate.locale.description":{value:"Sélectionnez la langue validée pour la réponse de l'assistant."},"assistantGate.jurisdiction.label":{value:"Juridiction"},"assistantGate.jurisdiction.placeholder":{value:"FR-AMF"},"assistantGate.kbSnapshotId.label":{value:"Identifiant du snapshot documentaire"},"assistantGate.kbSnapshotId.placeholder":{value:"kb_2026_03_20_policy_reviewed"},"assistantGate.allowedScope.label":{value:"Périmètre autorisé"},"assistantGate.allowedScope.educationOnly":{value:"Contenu éducatif uniquement"},"assistantGate.allowedScope.genericInfo":{value:"Information générale"},"assistantGate.allowedScope.escalationRequired":{value:"Escalade obligatoire"},"assistantGate.question.label":{value:"Question"},"assistantGate.question.placeholder":{value:"Que puis-je dire sur ce produit dans la juridiction sélectionnée ?"},"assistantGate.submit.label":{value:"Générer la réponse"}}});export{V as AssistantGateMessagesFrFr,N as AssistantGateMessagesEnUs,J as AssistantGateMessagesEnGb};
|
package/dist/docs/index.js
CHANGED
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
|
-
var docBlocks = [
|
|
5
|
-
{
|
|
6
|
-
id: "docs.examples.locale-jurisdiction-gate.goal",
|
|
7
|
-
title: "Locale/Jurisdiction Gate \u2014 Goal",
|
|
8
|
-
summary: "Fail-closed gate that forces locale + jurisdiction + kbSnapshotId + allowedScope for assistant calls.",
|
|
9
|
-
kind: "goal",
|
|
10
|
-
visibility: "public",
|
|
11
|
-
route: "/docs/examples/locale-jurisdiction-gate/goal",
|
|
12
|
-
tags: ["assistant", "policy", "locale", "jurisdiction", "knowledge"],
|
|
13
|
-
body: `## Why it matters
|
|
2
|
+
import{registerDocBlocks as f}from"@contractspec/lib.contracts-spec/docs";var h=[{id:"docs.examples.locale-jurisdiction-gate.goal",title:"Locale/Jurisdiction Gate \u2014 Goal",summary:"Fail-closed gate that forces locale + jurisdiction + kbSnapshotId + allowedScope for assistant calls.",kind:"goal",visibility:"public",route:"/docs/examples/locale-jurisdiction-gate/goal",tags:["assistant","policy","locale","jurisdiction","knowledge"],body:`## Why it matters
|
|
14
3
|
- Forces all assistant behavior to be bound to explicit inputs (no guessing).
|
|
15
4
|
- Requires KB snapshot citations to make answers traceable and regenerable.
|
|
16
5
|
|
|
17
6
|
## Guardrails
|
|
18
7
|
- Missing locale/jurisdiction/snapshot/scope => refuse (structured).
|
|
19
8
|
- Missing citations => refuse.
|
|
20
|
-
- Scope violations under education_only => refuse/escalate.`
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: "docs.examples.locale-jurisdiction-gate.reference",
|
|
24
|
-
title: "Locale/Jurisdiction Gate \u2014 Reference",
|
|
25
|
-
summary: "Contracts, models, and events exposed by the gate example.",
|
|
26
|
-
kind: "reference",
|
|
27
|
-
visibility: "public",
|
|
28
|
-
route: "/docs/examples/locale-jurisdiction-gate",
|
|
29
|
-
tags: ["assistant", "policy", "reference"],
|
|
30
|
-
body: `## Contracts
|
|
9
|
+
- Scope violations under education_only => refuse/escalate.`},{id:"docs.examples.locale-jurisdiction-gate.reference",title:"Locale/Jurisdiction Gate \u2014 Reference",summary:"Contracts, models, and events exposed by the gate example.",kind:"reference",visibility:"public",route:"/docs/examples/locale-jurisdiction-gate",tags:["assistant","policy","reference"],body:`## Contracts
|
|
31
10
|
- assistant.answer (v1)
|
|
32
11
|
- assistant.explainConcept (v1)
|
|
33
12
|
|
|
@@ -38,7 +17,4 @@ var docBlocks = [
|
|
|
38
17
|
## Events
|
|
39
18
|
- assistant.answer.requested
|
|
40
19
|
- assistant.answer.blocked
|
|
41
|
-
- assistant.answer.delivered`
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
registerDocBlocks(docBlocks);
|
|
20
|
+
- assistant.answer.delivered`}];f(h);
|
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
|
|
4
|
-
var docBlocks = [
|
|
5
|
-
{
|
|
6
|
-
id: "docs.examples.locale-jurisdiction-gate.goal",
|
|
7
|
-
title: "Locale/Jurisdiction Gate \u2014 Goal",
|
|
8
|
-
summary: "Fail-closed gate that forces locale + jurisdiction + kbSnapshotId + allowedScope for assistant calls.",
|
|
9
|
-
kind: "goal",
|
|
10
|
-
visibility: "public",
|
|
11
|
-
route: "/docs/examples/locale-jurisdiction-gate/goal",
|
|
12
|
-
tags: ["assistant", "policy", "locale", "jurisdiction", "knowledge"],
|
|
13
|
-
body: `## Why it matters
|
|
2
|
+
import{registerDocBlocks as f}from"@contractspec/lib.contracts-spec/docs";var h=[{id:"docs.examples.locale-jurisdiction-gate.goal",title:"Locale/Jurisdiction Gate \u2014 Goal",summary:"Fail-closed gate that forces locale + jurisdiction + kbSnapshotId + allowedScope for assistant calls.",kind:"goal",visibility:"public",route:"/docs/examples/locale-jurisdiction-gate/goal",tags:["assistant","policy","locale","jurisdiction","knowledge"],body:`## Why it matters
|
|
14
3
|
- Forces all assistant behavior to be bound to explicit inputs (no guessing).
|
|
15
4
|
- Requires KB snapshot citations to make answers traceable and regenerable.
|
|
16
5
|
|
|
17
6
|
## Guardrails
|
|
18
7
|
- Missing locale/jurisdiction/snapshot/scope => refuse (structured).
|
|
19
8
|
- Missing citations => refuse.
|
|
20
|
-
- Scope violations under education_only => refuse/escalate.`
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: "docs.examples.locale-jurisdiction-gate.reference",
|
|
24
|
-
title: "Locale/Jurisdiction Gate \u2014 Reference",
|
|
25
|
-
summary: "Contracts, models, and events exposed by the gate example.",
|
|
26
|
-
kind: "reference",
|
|
27
|
-
visibility: "public",
|
|
28
|
-
route: "/docs/examples/locale-jurisdiction-gate",
|
|
29
|
-
tags: ["assistant", "policy", "reference"],
|
|
30
|
-
body: `## Contracts
|
|
9
|
+
- Scope violations under education_only => refuse/escalate.`},{id:"docs.examples.locale-jurisdiction-gate.reference",title:"Locale/Jurisdiction Gate \u2014 Reference",summary:"Contracts, models, and events exposed by the gate example.",kind:"reference",visibility:"public",route:"/docs/examples/locale-jurisdiction-gate",tags:["assistant","policy","reference"],body:`## Contracts
|
|
31
10
|
- assistant.answer (v1)
|
|
32
11
|
- assistant.explainConcept (v1)
|
|
33
12
|
|
|
@@ -38,7 +17,4 @@ var docBlocks = [
|
|
|
38
17
|
## Events
|
|
39
18
|
- assistant.answer.requested
|
|
40
19
|
- assistant.answer.blocked
|
|
41
|
-
- assistant.answer.delivered`
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
registerDocBlocks(docBlocks);
|
|
20
|
+
- assistant.answer.delivered`}];f(h);
|