@vunexa/lixa 0.1.6-alpha.13 → 0.1.6-alpha.15

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.
@@ -0,0 +1,65 @@
1
+ import type { ProviderConfig } from "../types";
2
+ import type { IIdentityProvider, UserIdentity, IdentityAuthResult, ForgotPasswordParams, ForgotPasswordResult, ConfirmPasswordResetParams, ConfirmSignUpParams, ResendConfirmationCodeParams, ResendConfirmationCodeResult } from "./types";
3
+ import type { SignUpParams, SignInParams, VerifyCredentialsParams, ChangePasswordParams } from "../credentials/types";
4
+ /**
5
+ * Options for initializing a CompositeIdentityProvider.
6
+ *
7
+ * @public
8
+ */
9
+ export interface CompositeIdentityProviderOptions<TProviders extends Record<string, IIdentityProvider> = Record<string, IIdentityProvider>, TOAuthProviders extends Record<string, ProviderConfig> = Record<string, ProviderConfig>> {
10
+ /**
11
+ * Record of child identity providers keyed by unique provider names.
12
+ * e.g. `{ cognito: new CognitoIdentityProvider(...), okta: new OktaIdentityProvider(...) }`
13
+ */
14
+ providers: TProviders;
15
+ /**
16
+ * Default provider key to use when a request does not explicitly pass a `provider` parameter.
17
+ */
18
+ defaultProvider?: (keyof TProviders & string) | undefined;
19
+ /**
20
+ * Record of OAuth 2.0 / OIDC provider configurations (Google, GitHub, etc.)
21
+ * to register alongside these identity providers.
22
+ */
23
+ oauthProviders?: TOAuthProviders | undefined;
24
+ }
25
+ /**
26
+ * Composite Identity Provider that aggregates multiple child IIdentityProvider instances
27
+ * and OAuth 2.0 / OIDC provider configurations under a single unified identityProvider.
28
+ *
29
+ * @remarks
30
+ * Eliminates the need for separate `federatedOAuthProviders` configuration in Lixa.
31
+ * Provides compile-time autocompletion of configured provider names.
32
+ * Routing is strictly explicit: uses `params.provider` if provided, or `defaultProvider`.
33
+ * No silent fallbacks or guesswork.
34
+ *
35
+ * @public
36
+ */
37
+ export declare class CompositeIdentityProvider<TProviders extends Record<string, IIdentityProvider> = Record<string, IIdentityProvider>, TOAuthProviders extends Record<string, ProviderConfig> = Record<string, ProviderConfig>> implements IIdentityProvider {
38
+ readonly name: string;
39
+ readonly providers: TProviders;
40
+ readonly defaultProvider?: (keyof TProviders & string) | undefined;
41
+ readonly oauthProviders?: TOAuthProviders | undefined;
42
+ constructor(options: CompositeIdentityProviderOptions<TProviders, TOAuthProviders>);
43
+ /**
44
+ * Resolves the target child provider based on explicit parameter or defaultProvider.
45
+ * Throws an error immediately if the provider cannot be resolved or does not exist.
46
+ */
47
+ selectProvider(providerName?: string): IIdentityProvider;
48
+ /**
49
+ * Returns all OAuth / OIDC provider configurations aggregated across this composite provider
50
+ * and any child providers exposing `getOAuthProviders()` or `getProviders()`.
51
+ */
52
+ getProviders(): Record<string, ProviderConfig>;
53
+ signUp(params: SignUpParams): Promise<UserIdentity>;
54
+ signIn(params: SignInParams): Promise<IdentityAuthResult>;
55
+ verifyCredentials(params: VerifyCredentialsParams): Promise<UserIdentity | null>;
56
+ changePassword(params: ChangePasswordParams): Promise<boolean>;
57
+ forgotPassword(params: ForgotPasswordParams): Promise<ForgotPasswordResult>;
58
+ confirmPasswordReset(params: ConfirmPasswordResetParams): Promise<boolean>;
59
+ confirmSignUp(params: ConfirmSignUpParams): Promise<boolean>;
60
+ resendConfirmationCode(params: ResendConfirmationCodeParams): Promise<ResendConfirmationCodeResult>;
61
+ getUserById(id: string, providerName?: string): Promise<UserIdentity | null>;
62
+ getUserByIdentifier(identifier: string, providerName?: string): Promise<UserIdentity | null>;
63
+ deleteUser(id: string, providerName?: string): Promise<void>;
64
+ }
65
+ //# sourceMappingURL=composite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite.d.ts","sourceRoot":"","sources":["../../src/identity/composite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EAC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AiB;IAqB/D;;;OAGG;IACI,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAoBxC,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAKnD,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAKzD,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAShF,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAW9D,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAW3E,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,OAAO,CAAC;IAW1E,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAW5D,sBAAsB,CACjC,MAAM,EAAE,4BAA4B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAW3B,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAQ5E,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAQ5F,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAU1E"}
@@ -0,0 +1,4 @@
1
+ export * from "./types";
2
+ export * from "./self-managed";
3
+ export * from "./composite";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { IIdentityProvider, UserIdentity, IdentityAuthResult, ConfirmSignUpParams, ResendConfirmationCodeParams, ResendConfirmationCodeResult } from "./types";
2
+ import type { CredentialsConfig, SignUpParams, SignInParams, VerifyCredentialsParams, ChangePasswordParams } from "../credentials/types";
3
+ import { CredentialsManager } from "../credentials/credentials-manager";
4
+ /**
5
+ * Self-Managed Identity Provider implementation for Lixa.
6
+ *
7
+ * @remarks
8
+ * Backed by custom database storage (Prisma, Drizzle, PostgreSQL, SQLite, MongoDB)
9
+ * or local in-memory storage, with cryptographic password hashing (Scrypt, Argon2, PBKDF2)
10
+ * and configurable password policy enforcement.
11
+ *
12
+ * @public
13
+ */
14
+ export declare class SelfManagedIdentityProvider implements IIdentityProvider {
15
+ readonly name: string;
16
+ private readonly manager;
17
+ private readonly pendingSignups;
18
+ private readonly requireVerification;
19
+ private readonly config;
20
+ constructor(configOrManager?: CredentialsConfig | CredentialsManager);
21
+ private mapUser;
22
+ private generateConfirmationCode;
23
+ /**
24
+ * Registers a new user with optional pending verification.
25
+ * When requireVerification is true, credentials are NOT persisted to the database until confirmSignUp() is called.
26
+ */
27
+ signUp(params: SignUpParams): Promise<UserIdentity>;
28
+ /**
29
+ * Confirms a pending signup registration using the verification code.
30
+ * Only after successful confirmation is the user persisted to the database.
31
+ */
32
+ confirmSignUp(params: ConfirmSignUpParams): Promise<boolean>;
33
+ /**
34
+ * Resends the verification code for a pending signup.
35
+ */
36
+ resendConfirmationCode(params: ResendConfirmationCodeParams): Promise<ResendConfirmationCodeResult>;
37
+ /**
38
+ * Authenticates a user with password.
39
+ */
40
+ signIn(params: SignInParams): Promise<IdentityAuthResult>;
41
+ /**
42
+ * Verifies credentials without throwing an error if invalid.
43
+ */
44
+ verifyCredentials(params: VerifyCredentialsParams): Promise<UserIdentity | null>;
45
+ /**
46
+ * Changes a user's password.
47
+ */
48
+ changePassword(params: ChangePasswordParams): Promise<boolean>;
49
+ /**
50
+ * Retrieves a user by their unique ID.
51
+ */
52
+ getUserById(id: string): Promise<UserIdentity | null>;
53
+ /**
54
+ * Retrieves a user by their identifier (email or username).
55
+ */
56
+ getUserByIdentifier(identifier: string): Promise<UserIdentity | null>;
57
+ /**
58
+ * Deletes a user from storage if supported by the storage adapter.
59
+ */
60
+ deleteUser(id: string): Promise<void>;
61
+ /**
62
+ * Returns the underlying CredentialsManager instance.
63
+ */
64
+ getCredentialsManager(): CredentialsManager;
65
+ }
66
+ //# sourceMappingURL=self-managed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-managed.d.ts","sourceRoot":"","sources":["../../src/identity/self-managed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAIlB,mBAAmB,EACnB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAgBxE;;;;;;;;;GASG;AACH,qBAAa,2BAA4B,YAAW,iBAAiB;IACnE,SAAgB,IAAI,EAAE,MAAM,CAAkB;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAyC;IACxE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAU;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;gBAE/B,eAAe,CAAC,EAAE,iBAAiB,GAAG,kBAAkB;IAYpE,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,wBAAwB;IAIhC;;;OAGG;IACU,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA2FhE;;;OAGG;IACU,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAwCzE;;OAEG;IACU,sBAAsB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAuBhH;;OAEG;IACU,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAUtE;;OAEG;IACU,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAK7F;;OAEG;IACU,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3E;;OAEG;IACU,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAKlE;;OAEG;IACU,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAKlF;;OAEG;IACU,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOlD;;OAEG;IACI,qBAAqB,IAAI,kBAAkB;CAGnD"}
@@ -0,0 +1,232 @@
1
+ import type { SignUpParams, SignInParams, VerifyCredentialsParams, ChangePasswordParams, CredentialsConfig } from "../credentials/types";
2
+ /**
3
+ * Standardized user identity representation across all identity providers
4
+ * (Self-Managed Database, AWS Cognito, Auth0, Okta, Firebase, etc.).
5
+ *
6
+ * @public
7
+ */
8
+ export interface UserIdentity {
9
+ /** Unique user identifier (UUID, Sub, Auth0 user_id, Okta id) */
10
+ id: string;
11
+ /** Primary unique lookup identifier (email or username) */
12
+ identifier: string;
13
+ /** Associated email address if available */
14
+ email?: string | undefined;
15
+ /** Username of the account if available */
16
+ username?: string | undefined;
17
+ /** Whether the email address has been verified by the identity provider */
18
+ emailVerified?: boolean | undefined;
19
+ /** Unix timestamp in milliseconds when user was created */
20
+ createdAt?: number | undefined;
21
+ /** Unix timestamp in milliseconds when user was last updated */
22
+ updatedAt?: number | undefined;
23
+ /** Custom user metadata or profile attributes */
24
+ metadata?: Record<string, unknown> | undefined;
25
+ /** Identity provider name (e.g. "self-managed", "cognito", "auth0", "okta") */
26
+ provider?: string | undefined;
27
+ }
28
+ /**
29
+ * Standardized token response from an identity provider.
30
+ *
31
+ * @public
32
+ */
33
+ export interface IdentityTokens {
34
+ /** OAuth / IdP Access Token (JWT or opaque token) */
35
+ accessToken?: string | undefined;
36
+ /** OpenID Connect ID Token containing user claims */
37
+ idToken?: string | undefined;
38
+ /** Refresh token for renewing expired credentials */
39
+ refreshToken?: string | undefined;
40
+ /** Token type (usually "Bearer") */
41
+ tokenType?: string | undefined;
42
+ /** Token expiration time in seconds */
43
+ expiresIn?: number | undefined;
44
+ /** Raw response object returned directly by the provider */
45
+ raw?: Record<string, unknown> | undefined;
46
+ }
47
+ /**
48
+ * Result of user authentication through an identity provider.
49
+ *
50
+ * @public
51
+ */
52
+ export interface IdentityAuthResult {
53
+ /** Authenticated user profile */
54
+ user: UserIdentity;
55
+ /** Optional tokens issued by the identity provider */
56
+ tokens?: IdentityTokens | undefined;
57
+ }
58
+ /**
59
+ * Parameters for requesting a password reset (forgot password).
60
+ *
61
+ * @public
62
+ */
63
+ export interface ForgotPasswordParams {
64
+ /** Target identity provider name when using CompositeIdentityProvider */
65
+ provider?: string | undefined;
66
+ /** Username or email of the account requesting a password reset */
67
+ identifier: string;
68
+ /** Optional custom client metadata or redirect URL */
69
+ metadata?: Record<string, unknown> | undefined;
70
+ }
71
+ /**
72
+ * Result of a password reset request.
73
+ *
74
+ * @public
75
+ */
76
+ export interface ForgotPasswordResult {
77
+ /** Whether the password reset request was accepted */
78
+ success: boolean;
79
+ /** Delivery destination description (e.g. masked email: a***@example.com or phone) */
80
+ deliveryMedium?: string | undefined;
81
+ /** Optional message or status code from provider */
82
+ message?: string | undefined;
83
+ }
84
+ /**
85
+ * Parameters for confirming a password reset with a confirmation code or token.
86
+ *
87
+ * @public
88
+ */
89
+ export interface ConfirmPasswordResetParams {
90
+ /** Target identity provider name when using CompositeIdentityProvider */
91
+ provider?: string | undefined;
92
+ /** Username or email of the account */
93
+ identifier: string;
94
+ /** Verification code (e.g. 6-digit OTP from email/SMS) or reset token */
95
+ confirmationCode: string;
96
+ /** New plaintext password */
97
+ newPassword: string;
98
+ }
99
+ /**
100
+ * Parameters for confirming user registration with a verification code.
101
+ *
102
+ * @public
103
+ */
104
+ export interface ConfirmSignUpParams {
105
+ /** Target identity provider name when using CompositeIdentityProvider */
106
+ provider?: string | undefined;
107
+ /** Username or email of the account to confirm */
108
+ identifier: string;
109
+ /** Verification code (e.g. 6-digit OTP from email/SMS) */
110
+ confirmationCode: string;
111
+ }
112
+ /**
113
+ * Parameters for resending a sign up confirmation code.
114
+ *
115
+ * @public
116
+ */
117
+ export interface ResendConfirmationCodeParams {
118
+ /** Target identity provider name when using CompositeIdentityProvider */
119
+ provider?: string | undefined;
120
+ /** Username or email of the account */
121
+ identifier: string;
122
+ }
123
+ /**
124
+ * Result of resending a sign up confirmation code.
125
+ *
126
+ * @public
127
+ */
128
+ export interface ResendConfirmationCodeResult {
129
+ /** True if code was dispatched */
130
+ success: boolean;
131
+ /** Delivery medium (e.g. 'EMAIL' or 'SMS') */
132
+ deliveryMedium?: string | undefined;
133
+ /** Obscured destination */
134
+ destination?: string | undefined;
135
+ }
136
+ /**
137
+ * Unified interface for Identity Providers in Lixa.
138
+ *
139
+ * @remarks
140
+ * Implement this interface to create custom identity providers (e.g. Supabase Auth,
141
+ * Firebase Auth, Keycloak, or proprietary enterprise directories).
142
+ *
143
+ * Built-in extensions for AWS Cognito, Auth0, and Okta are available in `@vunexa/lixa-extensions`.
144
+ *
145
+ * @public
146
+ */
147
+ export interface IIdentityProvider {
148
+ /**
149
+ * Unique name of the identity provider.
150
+ * Examples: 'self-managed', 'cognito', 'auth0', 'okta'
151
+ */
152
+ readonly name: string;
153
+ /**
154
+ * Registers a new user with the identity provider.
155
+ *
156
+ * @param params - User registration details (identifier, password, email, username, metadata)
157
+ * @returns Created user identity
158
+ */
159
+ signUp(params: SignUpParams): Promise<UserIdentity>;
160
+ /**
161
+ * Authenticates a user with credentials.
162
+ *
163
+ * @param params - Sign in credentials (identifier, password)
164
+ * @returns Authenticated user identity and optional provider tokens
165
+ */
166
+ signIn(params: SignInParams): Promise<IdentityAuthResult>;
167
+ /**
168
+ * Verifies credentials without necessarily creating a full session.
169
+ *
170
+ * @param params - Verification parameters
171
+ * @returns User identity if credentials are valid, null otherwise
172
+ */
173
+ verifyCredentials?(params: VerifyCredentialsParams): Promise<UserIdentity | null>;
174
+ /**
175
+ * Changes a user's password.
176
+ *
177
+ * @param params - Old password, new password, and user identifier
178
+ * @returns True if password was successfully updated
179
+ */
180
+ changePassword?(params: ChangePasswordParams): Promise<boolean>;
181
+ /**
182
+ * Requests a password reset (forgot password flow).
183
+ *
184
+ * @param params - Forgot password parameters
185
+ */
186
+ forgotPassword?(params: ForgotPasswordParams): Promise<ForgotPasswordResult>;
187
+ /**
188
+ * Confirms password reset with verification code and new password.
189
+ *
190
+ * @param params - Confirm password reset parameters
191
+ */
192
+ confirmPasswordReset?(params: ConfirmPasswordResetParams): Promise<boolean>;
193
+ /**
194
+ * Confirms user registration using a verification code.
195
+ *
196
+ * @param params - Confirm sign up parameters
197
+ */
198
+ confirmSignUp?(params: ConfirmSignUpParams): Promise<boolean>;
199
+ /**
200
+ * Resends the sign up confirmation code.
201
+ *
202
+ * @param params - Resend confirmation code parameters
203
+ */
204
+ resendConfirmationCode?(params: ResendConfirmationCodeParams): Promise<ResendConfirmationCodeResult>;
205
+ /**
206
+ * Retrieves a user by their unique ID.
207
+ *
208
+ * @param id - Unique user ID
209
+ */
210
+ getUserById?(id: string): Promise<UserIdentity | null>;
211
+ /**
212
+ * Retrieves a user by their identifier (email or username).
213
+ *
214
+ * @param identifier - Username or email string
215
+ */
216
+ getUserByIdentifier?(identifier: string): Promise<UserIdentity | null>;
217
+ /**
218
+ * Deletes a user account.
219
+ *
220
+ * @param id - Unique user ID
221
+ */
222
+ deleteUser?(id: string): Promise<void>;
223
+ }
224
+ /**
225
+ * Configuration options for Identity Providers in LixaConfig.
226
+ *
227
+ * @public
228
+ */
229
+ export type IdentityConfig = IIdentityProvider | ({
230
+ provider?: "self-managed";
231
+ } & CredentialsConfig);
232
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/identity/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAC;IAEX,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;IAEnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,2EAA2E;IAC3E,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEpC,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAE/C,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7B,qDAAqD;IACrD,YAAY,CAAC,E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