@conarium-ai/core 0.2.38 → 0.2.40
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/CHANGELOG.md +74 -0
- package/README.md +1 -1
- package/bin/conarium-coverage.mjs +20 -19
- package/bin/conarium-init.mjs +10 -9
- package/bin/conarium-reconcile.mjs +6 -6
- package/bin/conarium-verify.mjs +63 -42
- package/dist/audit-hash.d.ts +1 -1
- package/dist/audit-hash.d.ts.map +1 -1
- package/dist/audit-hash.js +1 -1
- package/dist/audit-hash.js.map +1 -1
- package/dist/audit.d.ts +22 -21
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +104 -88
- package/dist/audit.js.map +1 -1
- package/dist/config.d.ts +69 -433
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -4
- package/dist/config.js.map +1 -1
- package/dist/connectors/supabase_rest.d.ts +2 -2
- package/dist/connectors/supabase_rest.d.ts.map +1 -1
- package/dist/connectors/supabase_rest.js +7 -5
- package/dist/connectors/supabase_rest.js.map +1 -1
- package/dist/console-receipts.d.ts +2 -2
- package/dist/console-receipts.d.ts.map +1 -1
- package/dist/console-receipts.js +2 -2
- package/dist/console-receipts.js.map +1 -1
- package/dist/console.d.ts +6 -22
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +13 -12
- package/dist/console.js.map +1 -1
- package/dist/coverage.d.ts +32 -30
- package/dist/coverage.d.ts.map +1 -1
- package/dist/coverage.js +39 -36
- package/dist/coverage.js.map +1 -1
- package/dist/governance.d.ts +14 -13
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +52 -48
- package/dist/governance.js.map +1 -1
- package/dist/http.d.ts +6 -5
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +45 -41
- package/dist/http.js.map +1 -1
- package/dist/iban.d.ts.map +1 -1
- package/dist/iban.js +13 -12
- package/dist/iban.js.map +1 -1
- package/dist/llm-gate.d.ts +6 -6
- package/dist/llm-gate.js +6 -6
- package/dist/pseudonymize.d.ts +8 -8
- package/dist/pseudonymize.d.ts.map +1 -1
- package/dist/pseudonymize.js +7 -7
- package/dist/pseudonymize.js.map +1 -1
- package/dist/receipt-view.d.ts +1 -1
- package/dist/receipt-view.d.ts.map +1 -1
- package/dist/receipt-view.js +52 -51
- package/dist/receipt-view.js.map +1 -1
- package/dist/receipt.d.ts +32 -28
- package/dist/receipt.d.ts.map +1 -1
- package/dist/receipt.js +23 -20
- package/dist/receipt.js.map +1 -1
- package/dist/scripts/discover_schema.js +14 -12
- package/dist/scripts/discover_schema.js.map +1 -1
- package/dist/scripts/dogfood_prove.js +16 -16
- package/dist/scripts/dogfood_prove.js.map +1 -1
- package/dist/server.d.ts +5 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +44 -34
- package/dist/server.js.map +1 -1
- package/dist/sql-gate/rules.d.ts +8 -7
- package/dist/sql-gate/rules.d.ts.map +1 -1
- package/dist/sql-gate/rules.js +11 -9
- package/dist/sql-gate/rules.js.map +1 -1
- package/dist/tokens.d.ts +3 -3
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +18 -18
- package/dist/tokens.js.map +1 -1
- package/docs/RECEIPT-SPEC.md +200 -3
- package/docs/claims/reviews/0.2.39.md +90 -0
- package/docs/claims/reviews/0.2.40.md +70 -0
- package/package.json +6 -4
- package/public/app.js +6 -6
- package/public/index.html +7 -7
- package/public/receipts-panel.js +7 -7
- package/scripts/audit-chain-check.mjs +6 -6
- package/scripts/benchmark-overhead.mjs +4 -4
- package/scripts/conarium_sabah_brief.mjs +11 -11
- package/test-vectors/README.md +15 -0
package/dist/config.d.ts
CHANGED
|
@@ -1,122 +1,40 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { ConariumConfig } from './types.js';
|
|
3
3
|
export declare const GovernancePolicySchema: z.ZodObject<{
|
|
4
|
-
allowTables: z.ZodOptional<z.
|
|
5
|
-
denyTables: z.ZodOptional<z.
|
|
6
|
-
maskColumns: z.ZodOptional<z.
|
|
7
|
-
protectedColumns: z.ZodOptional<z.
|
|
4
|
+
allowTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
+
denyTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
protectedColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
8
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
dialect: z.ZodOptional<z.ZodEnum<
|
|
9
|
+
dialect: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
mssql: "mssql";
|
|
11
|
+
oracle: "oracle";
|
|
12
|
+
postgres: "postgres";
|
|
13
|
+
}>>;
|
|
10
14
|
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
allowTools: z.ZodOptional<z.
|
|
12
|
-
denyTools: z.ZodOptional<z.
|
|
13
|
-
allowConnectors: z.ZodOptional<z.
|
|
14
|
-
denyConnectors: z.ZodOptional<z.
|
|
15
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
allowConnectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
denyConnectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
19
|
profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
16
|
-
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
20
|
+
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
21
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
18
22
|
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
},
|
|
20
|
-
maskColumns?: string[] | undefined;
|
|
21
|
-
maxRows?: number | undefined;
|
|
22
|
-
maskLabelledNames?: boolean | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
maskColumns?: string[] | undefined;
|
|
25
|
-
maxRows?: number | undefined;
|
|
26
|
-
maskLabelledNames?: boolean | undefined;
|
|
27
|
-
}>>>;
|
|
23
|
+
}, z.core.$strict>>>;
|
|
28
24
|
actorProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
25
|
scanCharCap: z.ZodOptional<z.ZodNumber>;
|
|
30
26
|
detectors: z.ZodOptional<z.ZodObject<{
|
|
31
27
|
ip: z.ZodOptional<z.ZodBoolean>;
|
|
32
28
|
mrz: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
},
|
|
34
|
-
ip?: boolean | undefined;
|
|
35
|
-
mrz?: boolean | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
ip?: boolean | undefined;
|
|
38
|
-
mrz?: boolean | undefined;
|
|
39
|
-
}>>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
40
30
|
customPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
31
|
name: z.ZodString;
|
|
42
32
|
pattern: z.ZodString;
|
|
43
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
33
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
34
|
label: z.ZodOptional<z.ZodString>;
|
|
45
35
|
sample: z.ZodOptional<z.ZodString>;
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
pattern: string;
|
|
49
|
-
columns?: string[] | undefined;
|
|
50
|
-
label?: string | undefined;
|
|
51
|
-
sample?: string | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
name: string;
|
|
54
|
-
pattern: string;
|
|
55
|
-
columns?: string[] | undefined;
|
|
56
|
-
label?: string | undefined;
|
|
57
|
-
sample?: string | undefined;
|
|
58
|
-
}>, "many">>;
|
|
59
|
-
}, "strict", z.ZodTypeAny, {
|
|
60
|
-
allowTables?: string[] | undefined;
|
|
61
|
-
denyTables?: string[] | undefined;
|
|
62
|
-
maskColumns?: string[] | undefined;
|
|
63
|
-
protectedColumns?: string[] | undefined;
|
|
64
|
-
maxRows?: number | undefined;
|
|
65
|
-
dialect?: "mssql" | "oracle" | "postgres" | undefined;
|
|
66
|
-
maskLabelledNames?: boolean | undefined;
|
|
67
|
-
allowTools?: string[] | undefined;
|
|
68
|
-
denyTools?: string[] | undefined;
|
|
69
|
-
allowConnectors?: string[] | undefined;
|
|
70
|
-
denyConnectors?: string[] | undefined;
|
|
71
|
-
profiles?: Record<string, {
|
|
72
|
-
maskColumns?: string[] | undefined;
|
|
73
|
-
maxRows?: number | undefined;
|
|
74
|
-
maskLabelledNames?: boolean | undefined;
|
|
75
|
-
}> | undefined;
|
|
76
|
-
actorProfiles?: Record<string, string> | undefined;
|
|
77
|
-
scanCharCap?: number | undefined;
|
|
78
|
-
detectors?: {
|
|
79
|
-
ip?: boolean | undefined;
|
|
80
|
-
mrz?: boolean | undefined;
|
|
81
|
-
} | undefined;
|
|
82
|
-
customPatterns?: {
|
|
83
|
-
name: string;
|
|
84
|
-
pattern: string;
|
|
85
|
-
columns?: string[] | undefined;
|
|
86
|
-
label?: string | undefined;
|
|
87
|
-
sample?: string | undefined;
|
|
88
|
-
}[] | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
allowTables?: string[] | undefined;
|
|
91
|
-
denyTables?: string[] | undefined;
|
|
92
|
-
maskColumns?: string[] | undefined;
|
|
93
|
-
protectedColumns?: string[] | undefined;
|
|
94
|
-
maxRows?: number | undefined;
|
|
95
|
-
dialect?: "mssql" | "oracle" | "postgres" | undefined;
|
|
96
|
-
maskLabelledNames?: boolean | undefined;
|
|
97
|
-
allowTools?: string[] | undefined;
|
|
98
|
-
denyTools?: string[] | undefined;
|
|
99
|
-
allowConnectors?: string[] | undefined;
|
|
100
|
-
denyConnectors?: string[] | undefined;
|
|
101
|
-
profiles?: Record<string, {
|
|
102
|
-
maskColumns?: string[] | undefined;
|
|
103
|
-
maxRows?: number | undefined;
|
|
104
|
-
maskLabelledNames?: boolean | undefined;
|
|
105
|
-
}> | undefined;
|
|
106
|
-
actorProfiles?: Record<string, string> | undefined;
|
|
107
|
-
scanCharCap?: number | undefined;
|
|
108
|
-
detectors?: {
|
|
109
|
-
ip?: boolean | undefined;
|
|
110
|
-
mrz?: boolean | undefined;
|
|
111
|
-
} | undefined;
|
|
112
|
-
customPatterns?: {
|
|
113
|
-
name: string;
|
|
114
|
-
pattern: string;
|
|
115
|
-
columns?: string[] | undefined;
|
|
116
|
-
label?: string | undefined;
|
|
117
|
-
sample?: string | undefined;
|
|
118
|
-
}[] | undefined;
|
|
119
|
-
}>;
|
|
36
|
+
}, z.core.$strict>>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
120
38
|
export declare const AuditConfigSchema: z.ZodObject<{
|
|
121
39
|
sink: z.ZodOptional<z.ZodString>;
|
|
122
40
|
failClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -125,209 +43,84 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
125
43
|
provider: z.ZodString;
|
|
126
44
|
name: z.ZodString;
|
|
127
45
|
version: z.ZodString;
|
|
128
|
-
},
|
|
129
|
-
provider: string;
|
|
130
|
-
name: string;
|
|
131
|
-
version: string;
|
|
132
|
-
}, {
|
|
133
|
-
provider: string;
|
|
134
|
-
name: string;
|
|
135
|
-
version: string;
|
|
136
|
-
}>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
137
47
|
receiptClient: z.ZodOptional<z.ZodObject<{
|
|
138
48
|
name: z.ZodString;
|
|
139
49
|
version: z.ZodString;
|
|
140
|
-
},
|
|
141
|
-
name: string;
|
|
142
|
-
version: string;
|
|
143
|
-
}, {
|
|
144
|
-
name: string;
|
|
145
|
-
version: string;
|
|
146
|
-
}>>;
|
|
147
|
-
/** Operator-declared destination (e.g. "openai/gpt-x"). Not verified. Not a policy input. */
|
|
50
|
+
}, z.core.$strip>>;
|
|
148
51
|
receiptDestination: z.ZodOptional<z.ZodString>;
|
|
149
|
-
},
|
|
150
|
-
sink?: string | undefined;
|
|
151
|
-
failClosed?: boolean | undefined;
|
|
152
|
-
receiptSink?: string | undefined;
|
|
153
|
-
receiptModel?: {
|
|
154
|
-
provider: string;
|
|
155
|
-
name: string;
|
|
156
|
-
version: string;
|
|
157
|
-
} | undefined;
|
|
158
|
-
receiptClient?: {
|
|
159
|
-
name: string;
|
|
160
|
-
version: string;
|
|
161
|
-
} | undefined;
|
|
162
|
-
receiptDestination?: string | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
sink?: string | undefined;
|
|
165
|
-
failClosed?: boolean | undefined;
|
|
166
|
-
receiptSink?: string | undefined;
|
|
167
|
-
receiptModel?: {
|
|
168
|
-
provider: string;
|
|
169
|
-
name: string;
|
|
170
|
-
version: string;
|
|
171
|
-
} | undefined;
|
|
172
|
-
receiptClient?: {
|
|
173
|
-
name: string;
|
|
174
|
-
version: string;
|
|
175
|
-
} | undefined;
|
|
176
|
-
receiptDestination?: string | undefined;
|
|
177
|
-
}>;
|
|
52
|
+
}, z.core.$strict>;
|
|
178
53
|
export declare const ConnectorConfigSchema: z.ZodObject<{
|
|
179
|
-
type: z.ZodEnum<
|
|
54
|
+
type: z.ZodEnum<{
|
|
55
|
+
"custom-sql": "custom-sql";
|
|
56
|
+
docs: "docs";
|
|
57
|
+
files: "files";
|
|
58
|
+
jira: "jira";
|
|
59
|
+
openapi: "openapi";
|
|
60
|
+
postgres: "postgres";
|
|
61
|
+
slack: "slack";
|
|
62
|
+
supabase: "supabase";
|
|
63
|
+
"supabase-rest": "supabase-rest";
|
|
64
|
+
}>;
|
|
180
65
|
name: z.ZodString;
|
|
181
66
|
description: z.ZodString;
|
|
182
67
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
183
|
-
},
|
|
184
|
-
type: "custom-sql" | "docs" | "files" | "jira" | "openapi" | "postgres" | "slack" | "supabase" | "supabase-rest";
|
|
185
|
-
name: string;
|
|
186
|
-
description: string;
|
|
187
|
-
config: Record<string, string>;
|
|
188
|
-
}, {
|
|
189
|
-
type: "custom-sql" | "docs" | "files" | "jira" | "openapi" | "postgres" | "slack" | "supabase" | "supabase-rest";
|
|
190
|
-
name: string;
|
|
191
|
-
description: string;
|
|
192
|
-
config?: Record<string, string> | undefined;
|
|
193
|
-
}>;
|
|
68
|
+
}, z.core.$strict>;
|
|
194
69
|
export declare const ConariumConfigSchema: z.ZodObject<{
|
|
195
70
|
connectors: z.ZodArray<z.ZodObject<{
|
|
196
|
-
type: z.ZodEnum<
|
|
71
|
+
type: z.ZodEnum<{
|
|
72
|
+
"custom-sql": "custom-sql";
|
|
73
|
+
docs: "docs";
|
|
74
|
+
files: "files";
|
|
75
|
+
jira: "jira";
|
|
76
|
+
openapi: "openapi";
|
|
77
|
+
postgres: "postgres";
|
|
78
|
+
slack: "slack";
|
|
79
|
+
supabase: "supabase";
|
|
80
|
+
"supabase-rest": "supabase-rest";
|
|
81
|
+
}>;
|
|
197
82
|
name: z.ZodString;
|
|
198
83
|
description: z.ZodString;
|
|
199
84
|
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
200
|
-
},
|
|
201
|
-
type: "custom-sql" | "docs" | "files" | "jira" | "openapi" | "postgres" | "slack" | "supabase" | "supabase-rest";
|
|
202
|
-
name: string;
|
|
203
|
-
description: string;
|
|
204
|
-
config: Record<string, string>;
|
|
205
|
-
}, {
|
|
206
|
-
type: "custom-sql" | "docs" | "files" | "jira" | "openapi" | "postgres" | "slack" | "supabase" | "supabase-rest";
|
|
207
|
-
name: string;
|
|
208
|
-
description: string;
|
|
209
|
-
config?: Record<string, string> | undefined;
|
|
210
|
-
}>, "many">;
|
|
85
|
+
}, z.core.$strict>>;
|
|
211
86
|
serverName: z.ZodOptional<z.ZodString>;
|
|
212
87
|
serverVersion: z.ZodOptional<z.ZodString>;
|
|
213
88
|
consumer: z.ZodOptional<z.ZodString>;
|
|
214
89
|
policy: z.ZodOptional<z.ZodObject<{
|
|
215
|
-
allowTables: z.ZodOptional<z.
|
|
216
|
-
denyTables: z.ZodOptional<z.
|
|
217
|
-
maskColumns: z.ZodOptional<z.
|
|
218
|
-
protectedColumns: z.ZodOptional<z.
|
|
90
|
+
allowTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
denyTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
+
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
+
protectedColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
94
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
220
|
-
dialect: z.ZodOptional<z.ZodEnum<
|
|
95
|
+
dialect: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
mssql: "mssql";
|
|
97
|
+
oracle: "oracle";
|
|
98
|
+
postgres: "postgres";
|
|
99
|
+
}>>;
|
|
221
100
|
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
-
allowTools: z.ZodOptional<z.
|
|
223
|
-
denyTools: z.ZodOptional<z.
|
|
224
|
-
allowConnectors: z.ZodOptional<z.
|
|
225
|
-
denyConnectors: z.ZodOptional<z.
|
|
101
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
+
allowConnectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
104
|
+
denyConnectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
226
105
|
profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
227
|
-
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
106
|
+
maskColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
228
107
|
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
229
108
|
maskLabelledNames: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
-
},
|
|
231
|
-
maskColumns?: string[] | undefined;
|
|
232
|
-
maxRows?: number | undefined;
|
|
233
|
-
maskLabelledNames?: boolean | undefined;
|
|
234
|
-
}, {
|
|
235
|
-
maskColumns?: string[] | undefined;
|
|
236
|
-
maxRows?: number | undefined;
|
|
237
|
-
maskLabelledNames?: boolean | undefined;
|
|
238
|
-
}>>>;
|
|
109
|
+
}, z.core.$strict>>>;
|
|
239
110
|
actorProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
240
111
|
scanCharCap: z.ZodOptional<z.ZodNumber>;
|
|
241
112
|
detectors: z.ZodOptional<z.ZodObject<{
|
|
242
113
|
ip: z.ZodOptional<z.ZodBoolean>;
|
|
243
114
|
mrz: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
-
},
|
|
245
|
-
ip?: boolean | undefined;
|
|
246
|
-
mrz?: boolean | undefined;
|
|
247
|
-
}, {
|
|
248
|
-
ip?: boolean | undefined;
|
|
249
|
-
mrz?: boolean | undefined;
|
|
250
|
-
}>>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
251
116
|
customPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
117
|
name: z.ZodString;
|
|
253
118
|
pattern: z.ZodString;
|
|
254
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
119
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
255
120
|
label: z.ZodOptional<z.ZodString>;
|
|
256
121
|
sample: z.ZodOptional<z.ZodString>;
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
pattern: string;
|
|
260
|
-
columns?: string[] | undefined;
|
|
261
|
-
label?: string | undefined;
|
|
262
|
-
sample?: string | undefined;
|
|
263
|
-
}, {
|
|
264
|
-
name: string;
|
|
265
|
-
pattern: string;
|
|
266
|
-
columns?: string[] | undefined;
|
|
267
|
-
label?: string | undefined;
|
|
268
|
-
sample?: string | undefined;
|
|
269
|
-
}>, "many">>;
|
|
270
|
-
}, "strict", z.ZodTypeAny, {
|
|
271
|
-
allowTables?: string[] | undefined;
|
|
272
|
-
denyTables?: string[] | undefined;
|
|
273
|
-
maskColumns?: string[] | undefined;
|
|
274
|
-
protectedColumns?: string[] | undefined;
|
|
275
|
-
maxRows?: number | undefined;
|
|
276
|
-
dialect?: "mssql" | "oracle" | "postgres" | undefined;
|
|
277
|
-
maskLabelledNames?: boolean | undefined;
|
|
278
|
-
allowTools?: string[] | undefined;
|
|
279
|
-
denyTools?: string[] | undefined;
|
|
280
|
-
allowConnectors?: string[] | undefined;
|
|
281
|
-
denyConnectors?: string[] | undefined;
|
|
282
|
-
profiles?: Record<string, {
|
|
283
|
-
maskColumns?: string[] | undefined;
|
|
284
|
-
maxRows?: number | undefined;
|
|
285
|
-
maskLabelledNames?: boolean | undefined;
|
|
286
|
-
}> | undefined;
|
|
287
|
-
actorProfiles?: Record<string, string> | undefined;
|
|
288
|
-
scanCharCap?: number | undefined;
|
|
289
|
-
detectors?: {
|
|
290
|
-
ip?: boolean | undefined;
|
|
291
|
-
mrz?: boolean | undefined;
|
|
292
|
-
} | undefined;
|
|
293
|
-
customPatterns?: {
|
|
294
|
-
name: string;
|
|
295
|
-
pattern: string;
|
|
296
|
-
columns?: string[] | undefined;
|
|
297
|
-
label?: string | undefined;
|
|
298
|
-
sample?: string | undefined;
|
|
299
|
-
}[] | undefined;
|
|
300
|
-
}, {
|
|
301
|
-
allowTables?: string[] | undefined;
|
|
302
|
-
denyTables?: string[] | undefined;
|
|
303
|
-
maskColumns?: string[] | undefined;
|
|
304
|
-
protectedColumns?: string[] | undefined;
|
|
305
|
-
maxRows?: number | undefined;
|
|
306
|
-
dialect?: "mssql" | "oracle" | "postgres" | undefined;
|
|
307
|
-
maskLabelledNames?: boolean | undefined;
|
|
308
|
-
allowTools?: string[] | undefined;
|
|
309
|
-
denyTools?: string[] | undefined;
|
|
310
|
-
allowConnectors?: string[] | undefined;
|
|
311
|
-
denyConnectors?: string[] | undefined;
|
|
312
|
-
profiles?: Record<string, {
|
|
313
|
-
maskColumns?: string[] | undefined;
|
|
314
|
-
maxRows?: number | undefined;
|
|
315
|
-
maskLabelledNames?: boolean | undefined;
|
|
316
|
-
}> | undefined;
|
|
317
|
-
actorProfiles?: Record<string, string> | undefined;
|
|
318
|
-
scanCharCap?: number | undefined;
|
|
319
|
-
detectors?: {
|
|
320
|
-
ip?: boolean | undefined;
|
|
321
|
-
mrz?: boolean | undefined;
|
|
322
|
-
} | undefined;
|
|
323
|
-
customPatterns?: {
|
|
324
|
-
name: string;
|
|
325
|
-
pattern: string;
|
|
326
|
-
columns?: string[] | undefined;
|
|
327
|
-
label?: string | undefined;
|
|
328
|
-
sample?: string | undefined;
|
|
329
|
-
}[] | undefined;
|
|
330
|
-
}>>;
|
|
122
|
+
}, z.core.$strict>>>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
331
124
|
audit: z.ZodOptional<z.ZodObject<{
|
|
332
125
|
sink: z.ZodOptional<z.ZodString>;
|
|
333
126
|
failClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -336,172 +129,15 @@ export declare const ConariumConfigSchema: z.ZodObject<{
|
|
|
336
129
|
provider: z.ZodString;
|
|
337
130
|
name: z.ZodString;
|
|
338
131
|
version: z.ZodString;
|
|
339
|
-
},
|
|
340
|
-
provider: string;
|
|
341
|
-
name: string;
|
|
342
|
-
version: string;
|
|
343
|
-
}, {
|
|
344
|
-
provider: string;
|
|
345
|
-
name: string;
|
|
346
|
-
version: string;
|
|
347
|
-
}>>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
348
133
|
receiptClient: z.ZodOptional<z.ZodObject<{
|
|
349
134
|
name: z.ZodString;
|
|
350
135
|
version: z.ZodString;
|
|
351
|
-
},
|
|
352
|
-
name: string;
|
|
353
|
-
version: string;
|
|
354
|
-
}, {
|
|
355
|
-
name: string;
|
|
356
|
-
version: string;
|
|
357
|
-
}>>;
|
|
358
|
-
/** Operator-declared destination (e.g. "openai/gpt-x"). Not verified. Not a policy input. */
|
|
136
|
+
}, z.core.$strip>>;
|
|
359
137
|
receiptDestination: z.ZodOptional<z.ZodString>;
|
|
360
|
-
},
|
|
361
|
-
sink?: string | undefined;
|
|
362
|
-
failClosed?: boolean | undefined;
|
|
363
|
-
receiptSink?: string | undefined;
|
|
364
|
-
receiptModel?: {
|
|
365
|
-
provider: string;
|
|
366
|
-
name: string;
|
|
367
|
-
version: string;
|
|
368
|
-
} | undefined;
|
|
369
|
-
receiptClient?: {
|
|
370
|
-
name: string;
|
|
371
|
-
version: string;
|
|
372
|
-
} | undefined;
|
|
373
|
-
receiptDestination?: string | undefined;
|
|
374
|
-
}, {
|
|
375
|
-
sink?: string | undefined;
|
|
376
|
-
failClosed?: boolean | undefined;
|
|
377
|
-
receiptSink?: string | undefined;
|
|
378
|
-
receiptModel?: {
|
|
379
|
-
provider: string;
|
|
380
|
-
name: string;
|
|
381
|
-
version: string;
|
|
382
|
-
} | undefined;
|
|
383
|
-
receiptClient?: {
|
|
384
|
-
name: string;
|
|
385
|
-
version: string;
|
|
386
|
-
} | undefined;
|
|
387
|
-
receiptDestination?: string | undefined;
|
|
388
|
-
}>>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
389
139
|
profile: z.ZodOptional<z.ZodLiteral<"production">>;
|
|
390
|
-
},
|
|
391
|
-
connectors: {
|
|
392
|
-
type: "custom-sql" | "docs" | "files" | "jira" | "openapi" | "postgres" | "slack" | "supabase" | "supabase-rest";
|
|
393
|
-
name: string;
|
|
394
|
-
description: string;
|
|
395
|
-
config: Record<string, string>;
|
|
396
|
-
}[];
|
|
397
|
-
serverName?: string | undefined;
|
|
398
|
-
serverVersion?: string | undefined;
|
|
399
|
-
consumer?: string | undefined;
|
|
400
|
-
policy?: {
|
|
401
|
-
allowTables?: string[] | undefined;
|
|
402
|
-
denyTables?: string[] | undefined;
|
|
403
|
-
maskColumns?: string[] | undefined;
|
|
404
|
-
protectedColumns?: string[] | undefined;
|
|
405
|
-
maxRows?: number | undefined;
|
|
406
|
-
dialect?: "mssql" | "oracle" | "postgres" | undefined;
|
|
407
|
-
maskLabelledNames?: boolean | undefined;
|
|
408
|
-
allowTools?: string[] | undefined;
|
|
409
|
-
denyTools?: string[] | undefined;
|
|
410
|
-
allowConnectors?: string[] | undefined;
|
|
411
|
-
denyConnectors?: string[] | undefined;
|
|
412
|
-
profiles?: Record<string, {
|
|
413
|
-
maskColumns?: string[] | undefined;
|
|
414
|
-
maxRows?: number | undefined;
|
|
415
|
-
maskLabelledNames?: boolean | undefined;
|
|
416
|
-
}> | undefined;
|
|
417
|
-
actorProfiles?: Record<string, string> | undefined;
|
|
418
|
-
scanCharCap?: number | undefined;
|
|
419
|
-
detectors?: {
|
|
420
|
-
ip?: boolean | undefined;
|
|
421
|
-
mrz?: boolean | undefined;
|
|
422
|
-
} | undefined;
|
|
423
|
-
customPatterns?: {
|
|
424
|
-
name: string;
|
|
425
|
-
pattern: string;
|
|
426
|
-
columns?: string[] | undefined;
|
|
427
|
-
label?: string | undefined;
|
|
428
|
-
sample?: string | undefined;
|
|
429
|
-
}[] | undefined;
|
|
430
|
-
} | undefined;
|
|
431
|
-
audit?: {
|
|
432
|
-
sink?: string | undefined;
|
|
433
|
-
failClosed?: boolean | undefined;
|
|
434
|
-
receiptSink?: string | undefined;
|
|
435
|
-
receiptModel?: {
|
|
436
|
-
provider: string;
|
|
437
|
-
name: string;
|
|
438
|
-
version: string;
|
|
439
|
-
} | undefined;
|
|
440
|
-
receiptClient?: {
|
|
441
|
-
name: string;
|
|
442
|
-
version: string;
|
|
443
|
-
} | undefined;
|
|
444
|
-
receiptDestination?: string | undefined;
|
|
445
|
-
} | undefined;
|
|
446
|
-
profile?: "production" | undefined;
|
|
447
|
-
}, {
|
|
448
|
-
connectors: {
|
|
449
|
-
type: "custom-sql" | "docs" | "files" | "jira" | "openapi" | "postgres" | "slack" | "supabase" | "supabase-rest";
|
|
450
|
-
name: string;
|
|
451
|
-
description: string;
|
|
452
|
-
config?: Record<string, string> | undefined;
|
|
453
|
-
}[];
|
|
454
|
-
serverName?: string | undefined;
|
|
455
|
-
serverVersion?: string | undefined;
|
|
456
|
-
consumer?: string | undefined;
|
|
457
|
-
policy?: {
|
|
458
|
-
allowTables?: string[] | undefined;
|
|
459
|
-
denyTables?: string[] | undefined;
|
|
460
|
-
maskColumns?: string[] | undefined;
|
|
461
|
-
protectedColumns?: string[] | undefined;
|
|
462
|
-
maxRows?: number | undefined;
|
|
463
|
-
dialect?: "mssql" | "oracle" | "postgres" | undefined;
|
|
464
|
-
maskLabelledNames?: boolean | undefined;
|
|
465
|
-
allowTools?: string[] | undefined;
|
|
466
|
-
denyTools?: string[] | undefined;
|
|
467
|
-
allowConnectors?: string[] | undefined;
|
|
468
|
-
denyConnectors?: string[] | undefined;
|
|
469
|
-
profiles?: Record<string, {
|
|
470
|
-
maskColumns?: string[] | undefined;
|
|
471
|
-
maxRows?: number | undefined;
|
|
472
|
-
maskLabelledNames?: boolean | undefined;
|
|
473
|
-
}> | undefined;
|
|
474
|
-
actorProfiles?: Record<string, string> | undefined;
|
|
475
|
-
scanCharCap?: number | undefined;
|
|
476
|
-
detectors?: {
|
|
477
|
-
ip?: boolean | undefined;
|
|
478
|
-
mrz?: boolean | undefined;
|
|
479
|
-
} | undefined;
|
|
480
|
-
customPatterns?: {
|
|
481
|
-
name: string;
|
|
482
|
-
pattern: string;
|
|
483
|
-
columns?: string[] | undefined;
|
|
484
|
-
label?: string | undefined;
|
|
485
|
-
sample?: string | undefined;
|
|
486
|
-
}[] | undefined;
|
|
487
|
-
} | undefined;
|
|
488
|
-
audit?: {
|
|
489
|
-
sink?: string | undefined;
|
|
490
|
-
failClosed?: boolean | undefined;
|
|
491
|
-
receiptSink?: string | undefined;
|
|
492
|
-
receiptModel?: {
|
|
493
|
-
provider: string;
|
|
494
|
-
name: string;
|
|
495
|
-
version: string;
|
|
496
|
-
} | undefined;
|
|
497
|
-
receiptClient?: {
|
|
498
|
-
name: string;
|
|
499
|
-
version: string;
|
|
500
|
-
} | undefined;
|
|
501
|
-
receiptDestination?: string | undefined;
|
|
502
|
-
} | undefined;
|
|
503
|
-
profile?: "production" | undefined;
|
|
504
|
-
}>;
|
|
140
|
+
}, z.core.$strict>;
|
|
505
141
|
export declare function isProductionProfile(cfg?: {
|
|
506
142
|
profile?: string;
|
|
507
143
|
} | null): boolean;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AA2BhD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA+BxB,CAAA;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;kBAenB,CAAA;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;kBAKvB,CAAA;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQtB,CAAA;AAEX,wBAAgB,mBAAmB,CAAC,GAAG,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,OAAO,CAG9E;AAED,sEAAsE;AACtE,wBAAgB,wBAAwB,CAAC,GAAG,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,IAAI,CAmBhF;AAED,yEAAyE;AACzE,wBAAgB,qBAAqB,CAAC,GAAG,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,MAAM,CAO/E;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAuBhE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAQhE"}
|
package/dist/config.js
CHANGED
|
@@ -2,7 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { compileCustomPatterns, CustomPatternError } from './custom_patterns.js';
|
|
3
3
|
import { warnIfMaxRowsHigh } from './masking-cost.js';
|
|
4
4
|
import { assertProtectedColumnsSupported } from './protected-columns.js';
|
|
5
|
-
|
|
5
|
+
// Zod 4 applies `.default()` even when the field is `.optional()`. An omitted
|
|
6
|
+
// `protectedColumns` becoming `[]` makes `if (policy.protectedColumns)` true
|
|
7
|
+
// and looks like a configured list. Leave omitted arrays undefined.
|
|
8
|
+
const stringArray = z.array(z.string().min(1));
|
|
6
9
|
const MaskingProfileSchema = z.object({
|
|
7
10
|
// No .default([]): an omitted maskColumns must stay omitted so the overlay
|
|
8
11
|
// does not silently empty the base list.
|
|
@@ -37,8 +40,8 @@ export const GovernancePolicySchema = z.object({
|
|
|
37
40
|
// loadConfig() threw Unrecognized key and the gateway could not boot a
|
|
38
41
|
// profiled config — the feature worked only when tests constructed the
|
|
39
42
|
// class by hand.
|
|
40
|
-
profiles: z.record(MaskingProfileSchema).optional(),
|
|
41
|
-
actorProfiles: z.record(z.string().min(1)).optional(),
|
|
43
|
+
profiles: z.record(z.string(), MaskingProfileSchema).optional(),
|
|
44
|
+
actorProfiles: z.record(z.string(), z.string().min(1)).optional(),
|
|
42
45
|
scanCharCap: z.number().int().min(1).max(1_048_576).optional(),
|
|
43
46
|
// Identity detectors (TCKN, card, IBAN, email, phone, PAN) are intentionally
|
|
44
47
|
// absent. Turning them off from config would let a bank "solve" masking by
|
|
@@ -70,7 +73,7 @@ export const ConnectorConfigSchema = z.object({
|
|
|
70
73
|
type: z.enum(['postgres', 'supabase', 'supabase-rest', 'openapi', 'files', 'docs', 'slack', 'jira', 'custom-sql']),
|
|
71
74
|
name: z.string().min(1),
|
|
72
75
|
description: z.string().min(1),
|
|
73
|
-
config: z.record(z.string()).default({}),
|
|
76
|
+
config: z.record(z.string(), z.string()).default({}),
|
|
74
77
|
}).strict();
|
|
75
78
|
export const ConariumConfigSchema = z.object({
|
|
76
79
|
connectors: z.array(ConnectorConfigSchema),
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AAExE,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AAExE,8EAA8E;AAC9E,6EAA6E;AAC7E,oEAAoE;AACpE,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;AAE9C,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,2EAA2E;IAC3E,yCAAyC;IACzC,WA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EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC;QAAE,OAAM;IAChE,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAA;IAC7B,IAAI,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,OAAO,IAAI,CAAC,KAAK,QAAQ;QAAE,OAAM;IAC/D,MAAM,IAAI,KAAK,CACb,qGAAqG;QACnG,kHAAkH,CACrH,CAAA;AACH,CAAC;AAED,wFAAwF;AACxF,SAAS,wBAAwB,CAAC,GAAe;IAC/C,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CACzB,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACjC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAC5D,CAAA;IACD,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAA;IACpB,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAClD,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAA;IACvC,MAAM,KAAK,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACzE,OAAO,IAAI,kBAAkB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;AACjD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Supabase PostgREST connector (C1).
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Safe RO access to the ZION mirror (Codes sync) when live SQL from Codes is closed on the PC.
|
|
4
|
+
* Raw SQL → only simple SELECT ... FROM schema.table [LIMIT n] is accepted.
|
|
5
5
|
*/
|
|
6
6
|
import type { Connector, ConnectorCapabilities, ConnectorConfig, QueryResult, SchemaTable } from '../types.js';
|
|
7
7
|
export declare class SupabaseRestConnector implements Connector {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabase_rest.d.ts","sourceRoot":"","sources":["../../src/connectors/supabase_rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,eAAe,EACf,WAAW,EACX,WAAW,EACZ,MAAM,aAAa,CAAA;AAIpB,qBAAa,qBAAsB,YAAW,SAAS;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,qBAAqB,CAKlC;IAED,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,KAAK,CAAa;IAE1B,mGAAmG;IACnG,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,YAAY,MAAM,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"supabase_rest.d.ts","sourceRoot":"","sources":["../../src/connectors/supabase_rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,eAAe,EACf,WAAW,EACX,WAAW,EACZ,MAAM,aAAa,CAAA;AAIpB,qBAAa,qBAAsB,YAAW,SAAS;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,qBAAqB,CAKlC;IAED,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,KAAK,CAAa;IAE1B,mGAAmG;IACnG,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