@supatype/types 0.9.1 → 0.10.0
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 +1 -1
- package/.turbo/turbo-test.log +23 -15
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +19 -1
- package/dist/auth-settings-groups.d.ts +216 -0
- package/dist/auth-settings-groups.d.ts.map +1 -0
- package/dist/auth-settings-groups.js +424 -0
- package/dist/auth-settings-groups.js.map +1 -0
- package/dist/auth-settings.d.ts +168 -0
- package/dist/auth-settings.d.ts.map +1 -0
- package/dist/auth-settings.js +501 -0
- package/dist/auth-settings.js.map +1 -0
- package/dist/function-secret-name.d.ts +14 -0
- package/dist/function-secret-name.d.ts.map +1 -0
- package/dist/function-secret-name.js +20 -0
- package/dist/function-secret-name.js.map +1 -0
- package/dist/index.d.ts +145 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/public-env.d.ts +70 -0
- package/dist/public-env.d.ts.map +1 -0
- package/dist/public-env.js +146 -0
- package/dist/public-env.js.map +1 -0
- package/dist/seed-contract.d.ts +101 -0
- package/dist/seed-contract.d.ts.map +1 -0
- package/dist/seed-contract.js +96 -0
- package/dist/seed-contract.js.map +1 -0
- package/package.json +1 -1
- package/src/auth-settings-groups.ts +604 -0
- package/src/auth-settings.ts +649 -0
- package/src/function-secret-name.ts +21 -0
- package/src/index.ts +176 -2
- package/src/public-env.ts +167 -0
- package/src/seed-contract.ts +162 -0
- package/tests/auth-settings-groups.test.ts +342 -0
- package/tests/auth-settings.test.ts +327 -0
- package/tests/bucket-access.test.ts +33 -1
- package/tests/channel.test.ts +94 -0
- package/tests/function-secret-name.test.ts +17 -0
- package/tests/public-env.test.ts +179 -0
- package/tests/seed-contract.test.ts +94 -0
- package/tests/standalone-build.test.ts +35 -0
- package/tsconfig.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
|
|
2
|
-
> @supatype/types@0.
|
|
2
|
+
> @supatype/types@0.10.0 test /home/runner/work/supatype/supatype/packages/types
|
|
3
3
|
> vitest run --maxWorkers=50%
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/home/runner/work/supatype/supatype/packages/types[39m
|
|
7
7
|
|
|
8
|
-
[32m✓[39m tests/
|
|
9
|
-
[32m✓[39m tests/
|
|
10
|
-
[32m✓[39m tests/
|
|
11
|
-
[32m✓[39m tests/
|
|
12
|
-
[32m✓[39m tests/
|
|
13
|
-
[32m✓[39m tests/
|
|
14
|
-
[32m✓[39m tests/
|
|
15
|
-
[32m✓[39m tests/
|
|
16
|
-
[32m✓[39m tests/
|
|
17
|
-
[32m✓[39m tests/
|
|
8
|
+
[32m✓[39m tests/auth-settings.test.ts [2m([22m[2m34 tests[22m[2m)[22m[32m 234[2mms[22m[39m
|
|
9
|
+
[32m✓[39m tests/auth-settings-groups.test.ts [2m([22m[2m32 tests[22m[2m)[22m[33m 352[2mms[22m[39m
|
|
10
|
+
[32m✓[39m tests/primitives.test.ts [2m([22m[2m20 tests[22m[2m)[22m[32m 63[2mms[22m[39m
|
|
11
|
+
[32m✓[39m tests/public-env.test.ts [2m([22m[2m63 tests[22m[2m)[22m[32m 181[2mms[22m[39m
|
|
12
|
+
[32m✓[39m tests/offset-operands.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 24[2mms[22m[39m
|
|
13
|
+
[32m✓[39m tests/seed-contract.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 143[2mms[22m[39m
|
|
14
|
+
[32m✓[39m tests/channel.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
15
|
+
[32m✓[39m tests/relation-cycles.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 63[2mms[22m[39m
|
|
16
|
+
[32m✓[39m tests/auth-user-on-delete.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 27[2mms[22m[39m
|
|
17
|
+
[32m✓[39m tests/identity-generated.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 34[2mms[22m[39m
|
|
18
|
+
[32m✓[39m tests/optional-model-spread.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 65[2mms[22m[39m
|
|
19
|
+
[32m✓[39m tests/modifier-unwrap.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 41[2mms[22m[39m
|
|
20
|
+
[32m✓[39m tests/bucket-access.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
21
|
+
[32m✓[39m tests/model-hooks.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 36[2mms[22m[39m
|
|
22
|
+
[32m✓[39m tests/function-secret-name.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 34[2mms[22m[39m
|
|
23
|
+
[32m✓[39m tests/geo-shape.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
24
|
+
[32m✓[39m tests/standalone-build.test.ts [2m([22m[2m1 test[22m[2m)[22m[33m 8535[2mms[22m[39m
|
|
25
|
+
[33m[2m✓[22m[39m typechecks with `types` empty [33m 8526[2mms[22m[39m
|
|
18
26
|
|
|
19
|
-
[2m Test Files [22m [1m[
|
|
20
|
-
[2m Tests [22m [1m[
|
|
21
|
-
[2m Start at [22m
|
|
22
|
-
[2m Duration [22m
|
|
27
|
+
[2m Test Files [22m [1m[32m17 passed[39m[22m[90m (17)[39m
|
|
28
|
+
[2m Tests [22m [1m[32m227 passed[39m[22m[90m (227)[39m
|
|
29
|
+
[2m Start at [22m 15:46:01
|
|
30
|
+
[2m Duration [22m 22.02s[2m (transform 3.36s, setup 0ms, import 5.71s, tests 9.90s, environment 12ms)[22m
|
|
23
31
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
There is no 0.4, 0.5 or 0.6 release: this package went from 0.3.6 straight to 0.7.0, on npm and as git tags, so
|
|
4
|
+
no entries are missing from this file.
|
|
5
|
+
|
|
6
|
+
## 0.9.3
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **storage:** `Folder<N>` names the Nth folder of an object path (from 1) in a bucket rule, so
|
|
11
|
+
`create: Eq<Folder<1>, AuthUid>` keeps each user to their own folder. `BucketRule` now also takes
|
|
12
|
+
`Any`, `All`, `Not`, comparisons and null checks over `AuthUid`, `AuthRole`, `Claim`, `Literal`
|
|
13
|
+
and `Folder`, so a registered-only rule can be written on a bucket.
|
|
14
|
+
* **realtime:** `Channel<Pattern, { params, access }>` declares a realtime channel, with `join`,
|
|
15
|
+
`send` and `track` rules. `Param<"id">` names a channel parameter, and `Event<"bid">` and
|
|
16
|
+
`Payload<"amount", { kind: "number"; min: 1 }>` check a broadcast's event name and payload in a
|
|
17
|
+
`send` rule. `params` must name exactly the `{segments}` of the pattern, each a `UUID`, `string`
|
|
18
|
+
or `Int`, and the compiler refuses a key the pattern does not use. `ChannelParamNames`,
|
|
19
|
+
`ChannelConfig`, `ChannelAccess` and `PayloadCheck` are exported for tooling.
|
|
20
|
+
|
|
21
|
+
## 0.8.0 (2026-11-02)
|
|
4
22
|
|
|
5
23
|
### Features
|
|
6
24
|
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The auth settings beyond sign-in basics: hooks, attack protection, sessions, MFA, phone sign-in,
|
|
3
|
+
* anonymous sign-in, rate limits and SAML enablement.
|
|
4
|
+
*
|
|
5
|
+
* Each setting is one row in a table (its config path, the variable the auth server reads, its kind
|
|
6
|
+
* and its value when nothing is set), and everything else is derived from the table: the leaf paths a
|
|
7
|
+
* Studio layer can save, the variables the renderers own, validation, and both renderings. A new
|
|
8
|
+
* setting is a new row.
|
|
9
|
+
*
|
|
10
|
+
* Two renderings, for two hosts:
|
|
11
|
+
* - {@link groupsEnv} writes every variable, with a default for one that is not set. Cloud reloads the
|
|
12
|
+
* file into a running server, which can set a variable but never unset it, so a removed setting
|
|
13
|
+
* has to come back as its default.
|
|
14
|
+
* - {@link groupsSelfHostVars} writes only what the config states, so a config that sets none of
|
|
15
|
+
* these renders exactly what it did before they existed.
|
|
16
|
+
*
|
|
17
|
+
* Pure types and pure functions: no I/O, no Node imports.
|
|
18
|
+
*/
|
|
19
|
+
import type { AuthRenderContext, AuthSettings, AuthTarget, EnvReference } from "./auth-settings.js";
|
|
20
|
+
export declare const AUTH_HOOK_NAMES: readonly ["customAccessToken", "beforeUserCreated", "afterUserCreated", "mfaVerificationAttempt", "passwordVerificationAttempt", "sendEmail", "sendSms"];
|
|
21
|
+
export type AuthHookName = (typeof AUTH_HOOK_NAMES)[number];
|
|
22
|
+
export interface AuthHookSettings {
|
|
23
|
+
/** Default true: listing a hook is asking for it. False keeps the settings and turns it off. */
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Where the server calls: an https URL (a project edge function's URL works), or a Postgres
|
|
27
|
+
* function as `pg-functions://postgres/<schema>/<function>`.
|
|
28
|
+
*/
|
|
29
|
+
uri?: string;
|
|
30
|
+
/** `env("NAME")`: the Standard Webhooks signing secret(s), `v1,whsec_...`, pipe-separated for rotation. */
|
|
31
|
+
secrets?: EnvReference;
|
|
32
|
+
}
|
|
33
|
+
export type AuthHooksSettings = Partial<Record<AuthHookName, AuthHookSettings>>;
|
|
34
|
+
/** The character classes a password can be required to contain. */
|
|
35
|
+
export declare const PASSWORD_CHARACTER_CLASSES: readonly ["lower", "upper", "digit", "symbol"];
|
|
36
|
+
export type PasswordCharacterClass = (typeof PASSWORD_CHARACTER_CLASSES)[number];
|
|
37
|
+
export declare const SMS_PROVIDERS: readonly ["twilio", "twilio_verify", "messagebird", "textlocal", "vonage"];
|
|
38
|
+
export type SmsProviderName = (typeof SMS_PROVIDERS)[number];
|
|
39
|
+
export declare const CAPTCHA_PROVIDERS: readonly ["hcaptcha", "turnstile"];
|
|
40
|
+
export interface AuthGroupSettings {
|
|
41
|
+
hooks?: AuthHooksSettings;
|
|
42
|
+
/**
|
|
43
|
+
* Bot protection on sign-up, sign-in and recovery. The secret is the provider's server-side key.
|
|
44
|
+
* The site key is the provider's public one: the server's public settings answer hands it to Studio
|
|
45
|
+
* and to apps, which render the provider's widget and send its token with the sign-in.
|
|
46
|
+
*/
|
|
47
|
+
captcha?: {
|
|
48
|
+
enabled?: boolean;
|
|
49
|
+
provider?: (typeof CAPTCHA_PROVIDERS)[number];
|
|
50
|
+
secret?: EnvReference;
|
|
51
|
+
siteKey?: string;
|
|
52
|
+
};
|
|
53
|
+
password?: {
|
|
54
|
+
/** Shortest password accepted, 6 to 72. */
|
|
55
|
+
minLength?: number;
|
|
56
|
+
/** Classes every password must hold at least one character of. */
|
|
57
|
+
requiredCharacters?: PasswordCharacterClass[];
|
|
58
|
+
/** Refuse a password found in a known breach (Have I Been Pwned, by k-anonymity range). */
|
|
59
|
+
leakedPasswordCheck?: boolean;
|
|
60
|
+
};
|
|
61
|
+
/** Session lifetimes are in seconds. Unset is no limit. */
|
|
62
|
+
sessions?: {
|
|
63
|
+
timebox?: number;
|
|
64
|
+
inactivityTimeout?: number;
|
|
65
|
+
singlePerUser?: boolean;
|
|
66
|
+
};
|
|
67
|
+
security?: {
|
|
68
|
+
/** Default true: each refresh issues a new refresh token and retires the old one. */
|
|
69
|
+
refreshTokenRotation?: boolean;
|
|
70
|
+
/** Seconds an already-used refresh token still works, for clients that retry. Default 0. */
|
|
71
|
+
refreshTokenReuseInterval?: number;
|
|
72
|
+
updatePasswordRequireReauthentication?: boolean;
|
|
73
|
+
updatePasswordRequireCurrentPassword?: boolean;
|
|
74
|
+
/** Let a signed-in user link another identity to their account. */
|
|
75
|
+
manualLinking?: boolean;
|
|
76
|
+
};
|
|
77
|
+
mfa?: {
|
|
78
|
+
/** Authenticator-app factors. Both default true. */
|
|
79
|
+
totp?: {
|
|
80
|
+
enroll?: boolean;
|
|
81
|
+
verify?: boolean;
|
|
82
|
+
};
|
|
83
|
+
/** SMS factors. Both default false; they need a phone provider. */
|
|
84
|
+
phone?: {
|
|
85
|
+
enroll?: boolean;
|
|
86
|
+
verify?: boolean;
|
|
87
|
+
};
|
|
88
|
+
maxEnrolledFactors?: number;
|
|
89
|
+
maxVerifiedFactors?: number;
|
|
90
|
+
};
|
|
91
|
+
anonymous?: {
|
|
92
|
+
enabled?: boolean;
|
|
93
|
+
};
|
|
94
|
+
/** Sign-in by phone number, and the SMS provider that sends the codes. Credentials are secrets. */
|
|
95
|
+
phone?: {
|
|
96
|
+
enabled?: boolean;
|
|
97
|
+
provider?: SmsProviderName;
|
|
98
|
+
/** Digits in a code, 6 to 10. */
|
|
99
|
+
otpLength?: number;
|
|
100
|
+
/** Seconds a code stays valid. */
|
|
101
|
+
otpExpiry?: number;
|
|
102
|
+
/** Seconds before another code may be sent to the same number. */
|
|
103
|
+
maxFrequency?: number;
|
|
104
|
+
twilio?: {
|
|
105
|
+
accountSid?: string;
|
|
106
|
+
authToken?: EnvReference;
|
|
107
|
+
messageServiceSid?: string;
|
|
108
|
+
contentSid?: string;
|
|
109
|
+
};
|
|
110
|
+
twilioVerify?: {
|
|
111
|
+
accountSid?: string;
|
|
112
|
+
authToken?: EnvReference;
|
|
113
|
+
messageServiceSid?: string;
|
|
114
|
+
};
|
|
115
|
+
messagebird?: {
|
|
116
|
+
accessKey?: EnvReference;
|
|
117
|
+
originator?: string;
|
|
118
|
+
};
|
|
119
|
+
textlocal?: {
|
|
120
|
+
apiKey?: EnvReference;
|
|
121
|
+
sender?: string;
|
|
122
|
+
};
|
|
123
|
+
vonage?: {
|
|
124
|
+
apiKey?: string;
|
|
125
|
+
apiSecret?: EnvReference;
|
|
126
|
+
from?: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Requests one client may make in a window that depends on the limit: 5 minutes for `otp`,
|
|
131
|
+
* `tokenRefresh`, `verify` and `sso`, an hour for `smsSent` and `anonymousUsers`, and a minute for
|
|
132
|
+
* `mfa` (challenges and verifies together). The email limit is the platform's on Cloud and is not here.
|
|
133
|
+
*/
|
|
134
|
+
rateLimits?: {
|
|
135
|
+
otp?: number;
|
|
136
|
+
tokenRefresh?: number;
|
|
137
|
+
verify?: number;
|
|
138
|
+
smsSent?: number;
|
|
139
|
+
anonymousUsers?: number;
|
|
140
|
+
sso?: number;
|
|
141
|
+
mfa?: number;
|
|
142
|
+
};
|
|
143
|
+
/** SAML single sign-on. The signing key is the platform's on Cloud; on self-host the CLI keeps it in `.env`. */
|
|
144
|
+
sso?: {
|
|
145
|
+
saml?: {
|
|
146
|
+
enabled?: boolean;
|
|
147
|
+
allowEncryptedAssertions?: boolean;
|
|
148
|
+
relayStateValidity?: number;
|
|
149
|
+
rateLimitAssertion?: number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/** What a setting's default looks like to a person: a number, a switch, a choice, or null for none. */
|
|
154
|
+
export type GroupDefault = string | number | boolean | null;
|
|
155
|
+
/**
|
|
156
|
+
* What the server runs with for a setting nothing sets, by its saved path (`auth.rateLimits.otp`):
|
|
157
|
+
* a number for a count or a duration in seconds, a boolean for a switch, the name of a choice, or
|
|
158
|
+
* null when there is none (no session limit, no provider, no hook). Undefined for a path this table
|
|
159
|
+
* does not hold. This is the value in force, so a fallback the server raises (a minimum length of 0
|
|
160
|
+
* becomes 6) reports what it is raised to.
|
|
161
|
+
*/
|
|
162
|
+
export declare function groupDefault(path: string): GroupDefault | undefined;
|
|
163
|
+
/** The key the platform generates and holds for a project's SAML service provider. Never settable or shown. */
|
|
164
|
+
export declare const SAML_PRIVATE_KEY_SECRET = "sso.saml.private_key";
|
|
165
|
+
/**
|
|
166
|
+
* The key a rotation moves to, held beside the current one while identity providers take its
|
|
167
|
+
* certificate: the server publishes both and decrypts with either. Made and promoted by the platform,
|
|
168
|
+
* never settable or shown, as the current key is.
|
|
169
|
+
*/
|
|
170
|
+
export declare const SAML_NEXT_PRIVATE_KEY_SECRET = "sso.saml.next_private_key";
|
|
171
|
+
/** Every variable the group renderers write. */
|
|
172
|
+
export declare const GROUP_OWNED_KEYS: readonly string[];
|
|
173
|
+
/**
|
|
174
|
+
* The variables the server reads once, when it starts: its rate limiters are kept across a reload, so
|
|
175
|
+
* a changed value reaches a running server only when it restarts.
|
|
176
|
+
*/
|
|
177
|
+
export declare const GROUP_RESTART_KEYS: readonly string[];
|
|
178
|
+
/** The paths a layer can save, as `auth.<path>`. */
|
|
179
|
+
export declare const GROUP_LEAF_PATHS: readonly string[];
|
|
180
|
+
/** Every secret key a project can set. */
|
|
181
|
+
export declare const GROUP_SECRET_KEYS: readonly string[];
|
|
182
|
+
/** The secrets the settings point at with `env("NAME")`: `[key, name]`. */
|
|
183
|
+
export declare function groupSecretRefs(settings: AuthSettings): {
|
|
184
|
+
key: string;
|
|
185
|
+
value: string | undefined;
|
|
186
|
+
}[];
|
|
187
|
+
/** Whether the settings use the secret `key`, among the group secrets and the platform's SAML key. */
|
|
188
|
+
export declare function groupSecretInUse(settings: AuthSettings, key: string): boolean | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* Secrets the settings cannot work without, by key: an enabled CAPTCHA's key, the chosen SMS
|
|
191
|
+
* provider's credential, and the project's own AWS keys when SES sends the mail.
|
|
192
|
+
*/
|
|
193
|
+
export declare function groupRequiredSecretKeys(settings: AuthSettings): string[];
|
|
194
|
+
/** A rule on a secret's value beyond non-empty, or undefined when it holds. Hook secrets are Standard Webhooks keys. */
|
|
195
|
+
export declare function groupSecretFormatProblem(key: string, value: string): string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Every group variable, explicit: a default for each setting that is not set, a secret's value from
|
|
198
|
+
* `ctx.secrets` when the settings use it and empty otherwise. SAML is only on when its key is held.
|
|
199
|
+
*/
|
|
200
|
+
export declare function groupsEnv(settings: AuthSettings, ctx: AuthRenderContext): Record<string, string>;
|
|
201
|
+
/** A variable for the self-host path: a literal, or the name of the variable that holds the value. */
|
|
202
|
+
export type SelfHostVar = {
|
|
203
|
+
key: string;
|
|
204
|
+
value: string;
|
|
205
|
+
} | {
|
|
206
|
+
key: string;
|
|
207
|
+
fromEnv: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Only what the settings state, for the self-host compose file and native dev. A secret is the name of
|
|
211
|
+
* the variable holding it. SAML is left to the CLI, which keeps its signing key in `.env`.
|
|
212
|
+
*/
|
|
213
|
+
export declare function groupsSelfHostVars(settings: AuthSettings): SelfHostVar[];
|
|
214
|
+
/** Every problem with the group settings; none when they are fine. */
|
|
215
|
+
export declare function groupProblems(auth: Record<string, unknown>, target: AuthTarget): string[];
|
|
216
|
+
//# sourceMappingURL=auth-settings-groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-settings-groups.d.ts","sourceRoot":"","sources":["../src/auth-settings-groups.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMnG,eAAO,MAAM,eAAe,0JAQlB,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAa3D,MAAM,WAAW,gBAAgB;IAC/B,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2GAA2G;IAC3G,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAA;AAE/E,mEAAmE;AACnE,eAAO,MAAM,0BAA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