@platform-sec/sensitive-string-zod 0.0.0-stage → 0.2.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 AppSec Science, LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,313 @@
1
- # Temporary Holding Version
1
+ # @platform-sec/sensitive-string-zod
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Zod integration for SensitiveString - parse and validate input directly into sensitive types at boundary layers.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add @platform-sec/sensitive-string-zod zod
9
+ ```
10
+
11
+ ## Requirements
12
+
13
+ - Node.js 22.12+
14
+ - Zod 4.0+
15
+ - @platform-sec/sensitive-string-core (peer dependency)
16
+
17
+ Zod 3 is not supported. A v3 schema and a v4 schema cannot be composed in either direction, and the
18
+ failure is a raw `TypeError` at schema construction rather than a type error, so a peer range
19
+ admitting both majors would be a promise this package could not keep.
20
+
21
+ ## Quick Start
22
+
23
+ ```typescript
24
+ import { z } from 'zod';
25
+ import { zCredential, zSensitiveWithValidation } from '@platform-sec/sensitive-string-zod';
26
+
27
+ // Define schema with sensitive fields
28
+ const WebhookSchema = z.object({
29
+ token: zCredential('session_token'),
30
+ email: zSensitiveWithValidation('sensitive', z.email(), 'email'),
31
+ note: z.string().optional(),
32
+ });
33
+
34
+ // Parse request body
35
+ const webhook = WebhookSchema.parse(req.body);
36
+
37
+ // Type inference works correctly
38
+ // webhook.token is SensitiveString<'credential'>
39
+ // webhook.email is SensitiveString<'sensitive'>
40
+
41
+ // Safe to serialize
42
+ res.json(webhook); // Sensitive fields automatically redacted
43
+ ```
44
+
45
+ ## Available Schemas
46
+
47
+ ```typescript
48
+ // Generic sensitive string with specified class + label
49
+ zSensitiveString('sensitive', 'email') // → SensitiveString<'sensitive'>
50
+ zSensitiveString('credential', 'token') // → SensitiveString<'credential'>
51
+
52
+ // Convenience shortcuts
53
+ zSensitive('email') // → SensitiveString<'sensitive'>
54
+ zCredential('session_token') // → SensitiveString<'credential'>
55
+
56
+ // With custom validation
57
+ zSensitiveWithValidation('credential', z.string().min(32), 'api_key')
58
+
59
+ // Optional (returns null for missing)
60
+ zSensitiveOptional('sensitive', 'phone')
61
+
62
+ // Parse from serialized format
63
+ zSensitiveDeserialize('credential')
64
+ ```
65
+
66
+ ### Collections
67
+
68
+ Arrays and records wrap each element on its own, so the collection combinators still apply and a
69
+ failing element reports its own index or key.
70
+
71
+ ```typescript
72
+ zSensitiveArray('email') // → SensitiveString<'sensitive'>[]
73
+ zCredentialArray('api_key').min(1).max(10) // ZodArray, so .min() and friends work
74
+ zSensitiveStringArray('credential', 'token') // explicit class
75
+
76
+ zSensitiveRecord('note') // → Record<string, SensitiveString<'sensitive'>>
77
+ zCredentialRecord('secret') // → Record<string, SensitiveString<'credential'>>
78
+ zSensitiveStringRecord('credential', 'secret')
79
+ ```
80
+
81
+ Record keys stay in the clear. A key is a field name, not the secret, and redacting it would leave
82
+ the record impossible to look anything up in.
83
+
84
+ Nothing stops you writing `z.array(zCredential('api_key'))` by hand; the helpers are the same thing
85
+ with the label named once.
86
+
87
+ ### Refinements over the raw value
88
+
89
+ `refineSensitive` runs a predicate against the raw string after wrapping. That read goes through
90
+ `reveal()`, so the ambient `RevealContext` authorizes it and its `auditReveal` hook records it with
91
+ `operation: 'reveal'`.
92
+
93
+ ```typescript
94
+ const PasswordSchema = zCredential('password')
95
+ .refineSensitive((raw) => raw.length >= 12, { message: 'Password must be at least 12 characters' })
96
+ .refineSensitive((raw) => /[0-9]/.test(raw), { message: 'Password must contain a digit' });
97
+ ```
98
+
99
+ The refinement manufactures no authority of its own. If a policy refuses a reveal without a context,
100
+ it refuses this one too; pass `params.context` to give the check a context of its own.
101
+
102
+ An async predicate is supported under `parseAsync`. Reached from a synchronous `parse()`, Zod throws
103
+ `$ZodAsyncError` rather than treating the pending promise as a pass.
104
+
105
+ The method is attached to the schemas this package builds. Standard Zod combinators return plain Zod
106
+ schemas and drop it, so refine before calling `.optional()` or `.array()`, or use the standalone
107
+ function:
108
+
109
+ ```typescript
110
+ import { refineSensitive } from '@platform-sec/sensitive-string-zod';
111
+
112
+ refineSensitive(someSchema, (raw) => raw.startsWith('sk_'), { message: 'must start with sk_' });
113
+ ```
114
+
115
+ ### Normalizing before wrapping
116
+
117
+ Trimming a `SensitiveString` means revealing it. Normalizing during the parse keeps the whole
118
+ sequence on the raw string, with no reveal at all. Order is normalize, then validate, then wrap.
119
+
120
+ ```typescript
121
+ zSensitivePreprocess({ trim: true, lowercase: true }, 'email', z.email());
122
+ zCredentialPreprocess({ stripWhitespace: true }, 'api_key'); // a key pasted with line breaks
123
+ zSensitivePreprocess([(v) => v.trim(), (v) => v.replace(/-/gu, '')], 'account_number');
124
+ ```
125
+
126
+ Options are applied in the order `normalize`, `collapseWhitespace`, `stripWhitespace`, `trim`,
127
+ `lowercase` or `uppercase`. A function or a list of functions works in place of the options object.
128
+ Non-string input passes through untouched, so it still reports Zod's usual `invalid_type`.
129
+
130
+ ### Defaults
131
+
132
+ The default is produced as a raw string and wrapped by the schema, so a generated fallback is
133
+ classified the same way a parsed one is. A function default is called once per parse that needs it.
134
+
135
+ ```typescript
136
+ const Config = z.object({
137
+ apiKey: zSensitiveDefault('credential', 'api_key', () => process.env.API_KEY ?? ''),
138
+ });
139
+ ```
140
+
141
+ `undefined` triggers the default. `null` and `''` do not: they are values a client sent, and
142
+ treating them as absent would substitute a secret for input that should have been rejected.
143
+
144
+ The fallback is held in a closure rather than in a `z.string().default(...)`, and that placement is
145
+ load-bearing. `z.toJSONSchema(schema, { io: 'input' })` reads a schema definition's `default` and
146
+ emits it verbatim, calling a function default to do so, which is exactly what an OpenAPI
147
+ request-body generator does. Under a `.default()`, the example above would put the live
148
+ `process.env.API_KEY` into the published document.
149
+
150
+ The same reasoning applies to what you attach yourself. `z.toJSONSchema` emits `.meta({ examples })`
151
+ and `.meta({ description })` verbatim, and `z.literal(secret)` emits `const: "<secret>"`. Those are
152
+ yours to keep clean; `toJSONSchema`'s `override` callback is the documented escape hatch. On the
153
+ output side, a schema built by this package produces a `SensitiveString` and `toJSONSchema` refuses
154
+ with `Transforms cannot be represented in JSON Schema`, which is the right answer.
155
+
156
+ ### Sensitivity decided by a sibling field
157
+
158
+ ```typescript
159
+ const Setting = zConditionalSensitive({
160
+ discriminator: 'type',
161
+ valueField: 'value',
162
+ conditions: {
163
+ secret: { klass: 'credential', label: 'secret_data' },
164
+ private: { klass: 'sensitive', label: 'private_data' },
165
+ public: null,
166
+ },
167
+ });
168
+
169
+ Setting.parse({ type: 'secret', value: 'sk-live-x' }); // value is SensitiveString
170
+ Setting.parse({ type: 'public', value: 'motd' }); // value is a string
171
+ ```
172
+
173
+ The result is a `z.discriminatedUnion`, so an unknown discriminator is rejected before the value is
174
+ looked at. For payloads with more than these two fields, write the branches by hand; `zSensitive`
175
+ and `zCredential` work as object fields there with nothing extra.
176
+
177
+ ## Errors That Do Not Echo the Input
178
+
179
+ Most of Zod's issues are already safe. A failed `min`, `email`, or `regex` check reports the rule,
180
+ not the string that failed it, and Zod 4 closed two leaks v3 had: the enum and literal codes both
181
+ became `invalid_value`, which carries the *allowed* set rather than what arrived. What is left,
182
+ measured against 4.5.4 with a canary:
183
+
184
+ | Issue code | What it carries |
185
+ |---|---|
186
+ | `unrecognized_keys` | unknown key names, in `keys` and in the message |
187
+ | `custom` | whatever a `superRefine` caller attached to `params` |
188
+ | `invalid_element` | the offending map key, in `key` |
189
+ | any | the value itself, in `input`, when the parse options set `reportInput: true` |
190
+
191
+ `invalid_union`, `invalid_key`, and `invalid_element` nest issue lists, so any of the above can
192
+ arrive one or more levels down.
193
+
194
+ The guarantee is about the input, not about values you put in your own schema. `invalid_value`
195
+ echoes what `z.literal()` and `z.enum()` were given, and `invalid_format` echoes the argument to
196
+ `startsWith`, `endsWith`, and `includes`. Nothing here can tell a secret apart from a legitimate
197
+ allowed value, so do not build a schema out of one. This is the same hazard as `z.literal(secret)`
198
+ under `z.toJSONSchema`, above.
199
+
200
+ That splits the fix in two. An error map can only rewrite the message. The `keys`, `params`, `key`,
201
+ and `input` fields survive it untouched and reach anything that serializes the error, which is where
202
+ structured logging picks them up.
203
+
204
+ ```typescript
205
+ import { sensitiveSafeParse } from '@platform-sec/sensitive-string-zod';
206
+
207
+ const result = sensitiveSafeParse(LoginSchema, req.body);
208
+ if (!result.success) {
209
+ res.status(400).json({ issues: result.error.issues }); // nothing echoed, message or field
210
+ }
211
+ ```
212
+
213
+ `sensitiveParse` and `sensitiveSafeParseAsync` are the throwing and async counterparts. For an error
214
+ you already hold, `redactZodError` and `redactZodIssues` return redacted copies without touching the
215
+ originals. All three parse helpers take Zod 4's parse options, exported as `SensitiveParseOptions`;
216
+ they set `error` when you have not, and force `reportInput` off, since that option puts the raw value
217
+ back on every issue.
218
+
219
+ To cover schemas that never pass through these helpers, install the error map once at startup. It is
220
+ not installed on import: a library that reaches into a process's global Zod configuration behind the
221
+ application's back is worse than one that asks for a line of setup.
222
+
223
+ ```typescript
224
+ import { installSensitiveErrorMap } from '@platform-sec/sensitive-string-zod';
225
+
226
+ installSensitiveErrorMap();
227
+ ```
228
+
229
+ That still leaves the structured fields, so keep using `sensitiveSafeParse` at the boundary.
230
+
231
+ ### Do not key a container by a secret
232
+
233
+ One channel is deliberately left uncovered: `issue.path`. A `z.object`, `z.record`, or `z.map` keyed
234
+ by a sensitive value puts that value in the path of every issue below it, and `z.treeifyError`
235
+ reproduces it as an object key.
236
+
237
+ ```typescript
238
+ z.map(z.literal('k'), z.string()).safeParse(new Map([[secret, 'v']]));
239
+ // -> path: ['<the secret>']
240
+ ```
241
+
242
+ Redacting `path` is not the fix: it is the only thing that makes a multi-issue error actionable, and
243
+ collapsing it would turn a form validation response into a list of unattributed complaints. Put the
244
+ secret in the value position instead, which is what `zSensitiveRecord` does. The failure is silent,
245
+ so it is worth checking for by hand.
246
+
247
+ ## Examples
248
+
249
+ ### User Registration
250
+
251
+ ```typescript
252
+ const RegistrationSchema = z.object({
253
+ email: zSensitivePreprocess({ trim: true, lowercase: true }, 'email', z.email()),
254
+ password: zSensitiveWithValidation(
255
+ 'credential',
256
+ z.string()
257
+ .min(8, 'Password must be at least 8 characters')
258
+ .regex(/[A-Z]/, 'Must contain uppercase')
259
+ .regex(/[0-9]/, 'Must contain number'),
260
+ 'password'
261
+ ).refineSensitive((raw) => !raw.toLowerCase().includes('password'), {
262
+ message: 'Password must not contain the word "password"',
263
+ }),
264
+ fullName: zSensitive('name'),
265
+ phone: zSensitiveOptional('sensitive', 'phone'),
266
+ backupCodes: zCredentialArray('backup_code').length(10),
267
+ });
268
+
269
+ const result = sensitiveSafeParse(RegistrationSchema, req.body);
270
+ ```
271
+
272
+ ### API Authentication
273
+
274
+ ```typescript
275
+ const AuthHeaderSchema = z.object({
276
+ authorization: zCredential('auth_header'),
277
+ });
278
+
279
+ const headers = AuthHeaderSchema.parse(req.headers);
280
+ ```
281
+
282
+ ### Service-to-Service Communication
283
+
284
+ ```typescript
285
+ // Receiving service
286
+ const PayloadSchema = z.object({
287
+ userId: z.string(),
288
+ token: zSensitiveDeserialize('credential'),
289
+ });
290
+
291
+ const { token } = PayloadSchema.parse(req.body);
292
+ // token is SensitiveString<'credential'>, reconstructed from serialized form
293
+ ```
294
+
295
+ A class mismatch, an unregistered class, and a malformed payload are all reported as Zod issues, so
296
+ `safeParse` reports them rather than throwing.
297
+
298
+ ## Re-exports
299
+
300
+ For convenience, this package re-exports commonly used items from `@platform-sec/sensitive-string-core`:
301
+
302
+ - `SensitiveString`
303
+ - `SensitivityClass`
304
+ - `SerializedSensitiveString`
305
+ - `RevealContext`
306
+ - `withRevealContext`
307
+ - `getCurrentRevealContext`
308
+ - `safeLog`
309
+ - `redactInStructure`
310
+
311
+ ## License
312
+
313
+ MIT
package/dist/base.d.ts ADDED
@@ -0,0 +1,173 @@
1
+ /**
2
+ * The base schema factories: plain strings, validated strings, optional
3
+ * fields, and the serialized wire format.
4
+ *
5
+ * @packageDocumentation
6
+ */
7
+ import { z } from 'zod';
8
+ import { SensitiveString, SensitivityClass } from '@platform-sec/sensitive-string-core';
9
+ import type { SensitiveSchema } from './types.js';
10
+ /**
11
+ * Create a Zod schema that parses strings into SensitiveString instances.
12
+ *
13
+ * @typeParam C - The sensitivity class for the resulting SensitiveString
14
+ * @param klass - The sensitivity classification to apply
15
+ * @param label - Optional label for audit/compliance categorization
16
+ * @returns A Zod schema that transforms strings to SensitiveString<C>
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const schema = z.object({
21
+ * apiKey: zSensitiveString('credential', 'api_key'),
22
+ * email: zSensitiveString('sensitive', 'email'),
23
+ * });
24
+ *
25
+ * const result = schema.parse({
26
+ * apiKey: 'sk-xxx',
27
+ * email: 'user@example.com',
28
+ * });
29
+ *
30
+ * console.log(result.apiKey); // SensitiveString<credential:api_key> { [REDACTED:credential] }
31
+ * ```
32
+ */
33
+ export declare function zSensitiveString<C extends SensitivityClass>(klass: C, label?: string): SensitiveSchema<C, string>;
34
+ /**
35
+ * Create a Zod schema for sensitive data (PII, business data, etc.).
36
+ * Shorthand for zSensitiveString('sensitive', label).
37
+ *
38
+ * @param label - Optional label for audit/compliance (e.g., 'email', 'phone', 'address')
39
+ * @returns A Zod schema that transforms strings to SensitiveString<'sensitive'>
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const schema = z.object({
44
+ * email: zSensitive('email'),
45
+ * phone: zSensitive('phone'),
46
+ * name: zSensitive('name'),
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function zSensitive(label?: string): SensitiveSchema<'sensitive', string>;
51
+ /**
52
+ * Create a Zod schema for credential data (passwords, API keys, tokens).
53
+ * Shorthand for zSensitiveString('credential', label).
54
+ * Values will use constant-time comparison to prevent timing attacks.
55
+ *
56
+ * @param label - Optional label for audit/compliance (e.g., 'api_key', 'password', 'session_token')
57
+ * @returns A Zod schema that transforms strings to SensitiveString<'credential'>
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const schema = z.object({
62
+ * password: zCredential('password'),
63
+ * apiKey: zCredential('api_key'),
64
+ * sessionToken: zCredential('session_token'),
65
+ * });
66
+ * ```
67
+ */
68
+ export declare function zCredential(label?: string): SensitiveSchema<'credential', string>;
69
+ /**
70
+ * Create a Zod schema with additional string validation before wrapping.
71
+ *
72
+ * The schema parameter is any string-to-string schema, not specifically a
73
+ * `z.ZodString`. Zod 4 promoted the string formats to top-level constructors
74
+ * with classes of their own, so `z.email()` is a `ZodEmail` and is not a
75
+ * `ZodString`; requiring the narrower type would push callers back onto the
76
+ * deprecated `z.string().email()` spelling to use this package.
77
+ *
78
+ * @typeParam C - The sensitivity class for the resulting SensitiveString
79
+ * @param klass - The sensitivity classification to apply
80
+ * @param schema - A Zod schema that takes and returns a string
81
+ * @param label - Optional label for audit/compliance
82
+ * @returns A Zod schema that validates then transforms to SensitiveString<C>
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * // API key must be at least 32 characters
87
+ * const apiKeySchema = zSensitiveWithValidation(
88
+ * 'credential',
89
+ * z.string().min(32, 'API key too short'),
90
+ * 'api_key'
91
+ * );
92
+ *
93
+ * // A v4 format constructor works directly.
94
+ * const emailSchema = zSensitiveWithValidation('sensitive', z.email(), 'email');
95
+ *
96
+ * // Password with complexity requirements
97
+ * const passwordSchema = zSensitiveWithValidation(
98
+ * 'credential',
99
+ * z.string()
100
+ * .min(8, 'Password must be at least 8 characters')
101
+ * .regex(/[A-Z]/, 'Password must contain uppercase'),
102
+ * 'password'
103
+ * );
104
+ * ```
105
+ */
106
+ export declare function zSensitiveWithValidation<C extends SensitivityClass>(klass: C, schema: z.ZodType<string, string>, label?: string): SensitiveSchema<C, string>;
107
+ /**
108
+ * Create a Zod schema for optional sensitive strings.
109
+ * Returns null for undefined/null input, SensitiveString for valid strings.
110
+ *
111
+ * @typeParam C - The sensitivity class for the resulting SensitiveString
112
+ * @param klass - The sensitivity classification to apply
113
+ * @param label - Optional label for audit/compliance
114
+ * @returns A Zod schema that transforms optional strings
115
+ *
116
+ * @example
117
+ * ```ts
118
+ * const schema = z.object({
119
+ * apiKey: zSensitiveOptional('credential', 'api_key'),
120
+ * });
121
+ *
122
+ * schema.parse({ apiKey: undefined }); // { apiKey: null }
123
+ * schema.parse({ apiKey: 'sk-xxx' }); // { apiKey: SensitiveString<credential> }
124
+ * ```
125
+ */
126
+ export declare function zSensitiveOptional<C extends SensitivityClass>(klass: C, label?: string): z.ZodType<SensitiveString<C> | null, string | null | undefined>;
127
+ /**
128
+ * Create a Zod schema that validates against a serialized format
129
+ * and reconstructs the SensitiveString.
130
+ *
131
+ * Useful for validating incoming payloads that were serialized with serialize().
132
+ *
133
+ * Reconstruction is delegated to `SensitiveString.deserialize()`, so this path
134
+ * enforces exactly what the core wire format does: the sensitivity class must be
135
+ * registered, a deadline carried by the payload is carried into the value, a
136
+ * payload that marks the value revoked produces a revoked value, and environment
137
+ * restrictions and destination bindings arrive with it. Rebuilding the value
138
+ * here instead would silently drop all four, which fails open: an expiring
139
+ * token would arrive as one that never expires, a revoked one as live, one
140
+ * restricted to the EU as readable anywhere, and one bound to a host as
141
+ * sendable to any.
142
+ *
143
+ * A class mismatch, an unregistered class, and a malformed payload are all
144
+ * reported as Zod issues, so `safeParse` reports them rather than throwing.
145
+ *
146
+ * @typeParam C - The expected sensitivity class
147
+ * @param expectedKlass - Optional expected class (validates if provided)
148
+ * @returns A Zod schema that parses serialized forms to SensitiveString
149
+ *
150
+ * @example
151
+ * ```ts
152
+ * const schema = z.object({
153
+ * token: zSensitiveDeserialize('credential'),
154
+ * });
155
+ *
156
+ * // Validates serialized structure and reconstructs
157
+ * const result = schema.parse({
158
+ * token: { __sensitive: true, klass: 'credential', value: 'secret-value', label: 'api_key' }
159
+ * });
160
+ * ```
161
+ */
162
+ export declare function zSensitiveDeserialize<C extends SensitivityClass>(expectedKlass?: C): SensitiveSchema<C, {
163
+ __sensitive: true;
164
+ klass: string;
165
+ value: string;
166
+ label?: string | undefined;
167
+ expiresAt?: string | undefined;
168
+ revoked?: true | undefined;
169
+ revocationReason?: string | undefined;
170
+ restrictions?: unknown[] | undefined;
171
+ destinations?: unknown[] | undefined;
172
+ }>;
173
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAExF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,EACzD,KAAK,EAAE,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