From 88a44b862f95c9e3209acb92d187439b9e9bca08 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 8 May 2026 15:29:17 +0000 Subject: [PATCH 1/2] fix(website): correct YouTube channel URL in footer nav Closes #4244 https://claude.ai/code/session_01T4QXSy7CfCVDsRHw1VPB3Q --- .changeset/fix-youtube-link-4244.md | 4 ++++ server/public/nav.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-youtube-link-4244.md diff --git a/.changeset/fix-youtube-link-4244.md b/.changeset/fix-youtube-link-4244.md new file mode 100644 index 0000000000..8a8325928e --- /dev/null +++ b/.changeset/fix-youtube-link-4244.md @@ -0,0 +1,4 @@ +--- +--- + +fix(website): correct YouTube channel URL in footer nav from @AgenticAdvertisingOrg to @AgenticAdvertising, closes #4244 diff --git a/server/public/nav.js b/server/public/nav.js index 54d627487a..6dd0047814 100644 --- a/server/public/nav.js +++ b/server/public/nav.js @@ -899,7 +899,7 @@ - + From 51e3fff0bd9432166f1617f21e1ca7d4b8e35b70 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 8 May 2026 15:30:50 +0000 Subject: [PATCH 2/2] chore(dist): rebuild stale schema dist artifacts Build gate (npm run build) regenerated these dist files whose TypeScript source had been updated on main but dist not recommitted. Unrelated to the YouTube URL fix in the previous commit. https://claude.ai/code/session_01T4QXSy7CfCVDsRHw1VPB3Q --- dist/schemas/member-agents-openapi.js | 16 ++- dist/schemas/member-agents-openapi.js.map | 2 +- dist/schemas/onboarding-openapi.d.ts | 27 +++++ dist/schemas/onboarding-openapi.d.ts.map | 1 + dist/schemas/onboarding-openapi.js | 135 ++++++++++++++++++++++ dist/schemas/onboarding-openapi.js.map | 1 + 6 files changed, 178 insertions(+), 4 deletions(-) create mode 100644 dist/schemas/onboarding-openapi.d.ts create mode 100644 dist/schemas/onboarding-openapi.d.ts.map create mode 100644 dist/schemas/onboarding-openapi.js create mode 100644 dist/schemas/onboarding-openapi.js.map diff --git a/dist/schemas/member-agents-openapi.js b/dist/schemas/member-agents-openapi.js index ade3e163f1..d5fd32dab2 100644 --- a/dist/schemas/member-agents-openapi.js +++ b/dist/schemas/member-agents-openapi.js @@ -79,6 +79,12 @@ const MemberAgentResponseSchema = z .object({ agent: MemberAgentSchema, warnings: z.array(MemberAgentVisibilityWarningSchema).optional(), + org_auto_created: z.boolean().optional().openapi({ + description: "Set to `true` when this `POST` was the caller's first interaction with the registry and the server auto-created the organization (display name derived from the user's email domain for corporate emails, or `'s Workspace` for free-email providers). Combined with `profile_auto_created`, this is the one-call storefront experience: a third-party app holding only an OAuth token gets the org, profile, and registered agent in a single request.", + }), + profile_auto_created: z.boolean().optional().openapi({ + description: 'Set to `true` when this `POST` was the first agent registration on the caller\'s organization and the server auto-created a private member profile (display name = organization name, `is_public: false`). Absent on subsequent calls and on update-in-place. Surfaced so storefront-style integrations can show a "we set up your profile" hint without needing to detect the prior 404 → bootstrap → retry shape.', + }), }) .openapi('MemberAgentResponse'); const MemberAgentListResponseSchema = z @@ -126,6 +132,10 @@ registry.registerPath({ description: [ "Register an agent on the caller's organization member profile.", 'Idempotent on `url`: re-posting the same `url` updates the entry in place rather than creating a duplicate. New entries return `201`; updates return `200`.', + "**True one-call storefront experience.** A third-party app holding only a user's OAuth token can `POST /api/me/agents` once and have the entire bootstrap chain materialize:", + "- If the caller has zero org memberships, the server auto-creates an organization (corporate or personal workspace based on the user's email domain) and the response includes `org_auto_created: true`.", + "- If the caller's org has no member profile, the server auto-creates a private profile (display name = organization name, `is_public: false`) and the response includes `profile_auto_created: true`.", + "Both auto-bootstraps are best-effort fallbacks. To customize org name / company_type / revenue_tier, or to control profile slug / brand identity / tagline, call `POST /api/organizations` and `POST /api/me/member-profile` explicitly before registering the agent. Tier transitions never happen via this path — go through the billing flow.", "The `type` field is resolved server-side from the agent's capability snapshot — a client cannot pin a misclassification (e.g. registering a sales agent as `buying`).", '`visibility: "public"` requires Professional tier or higher and a `primary_brand_domain` set on the profile. Non-API-tier callers who request `public` will have the entry stored as `members_only` instead, and the response will include a `visibility_downgraded` warning describing the coercion.', ].join('\n\n'), @@ -141,11 +151,11 @@ registry.registerPath({ content: { 'application/json': { schema: MemberAgentResponseSchema } }, }, 201: { - description: 'Agent registered.', + description: 'Agent registered. When this is the first agent on a freshly created organization, the response includes `profile_auto_created: true`.', content: { 'application/json': { schema: MemberAgentResponseSchema } }, }, 400: { - description: 'Missing or invalid `url`, or no organization associated with this account.', + description: 'Missing or invalid `url`, or the caller has memberships in other orgs but no primary org set — pass `?org=` to target one explicitly. (Fresh users with no memberships at all hit the org auto-bootstrap path and do not see this error.)', content: { 'application/json': { schema: ErrorSchema } }, }, 401: { @@ -157,7 +167,7 @@ registry.registerPath({ content: { 'application/json': { schema: ErrorSchema } }, }, 404: { - description: 'No member profile exists yet — create one via `POST /api/me/member-profile`.', + description: 'Auto-bootstrap could not run (e.g. the organization has no name yet). Call `POST /api/me/member-profile` to create a profile explicitly, then retry.', content: { 'application/json': { schema: ErrorSchema } }, }, 429: { diff --git a/dist/schemas/member-agents-openapi.js.map b/dist/schemas/member-agents-openapi.js.map index 4ef71556e9..ded2356b07 100644 --- a/dist/schemas/member-agents-openapi.js.map +++ b/dist/schemas/member-agents-openapi.js.map @@ -1 +1 @@ -{"version":3,"file":"member-agents-openapi.js","sourceRoot":"","sources":["../../server/src/schemas/member-agents-openapi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACjC,WAAW,EACT,+PAA+P;QACjQ,OAAO,EAAE,gBAAgB;KAC1B,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,CAAC;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AG,EAAE;YACH,WAAW,EACT,6EAA6E;YAC/E,OAAO,EAAE,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE;SACzD;KACF;CACF,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"member-agents-openapi.js","sourceRoot":"","sources":["../../server/src/schemas/member-agents-openapi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACjC,WAAW,EACT,+PAA+P;QACjQ,OAAO,EAAE,gBAAgB;KAC1B,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,CAAC;KAClC,IAAI,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC;KAC3C,OAAO,CAAC,uBAAuB,EAAE;IAChC,WAAW,EACT,4PAA4P;CAC/P,CAAC,CAAC;AAEL,MAAM,qBAAqB,GAAG,CAAC;KAC5B,IAAI,CAAC;IACJ,OAAO;IACP,QAAQ;IACR,aAAa;IACb,YAAY;IACZ,UAAU;IACV,OAAO;IACP,QAAQ;IACR,SAAS;IACT,SAAS;CACV,CAAC;KACD,OAAO,CAAC,iBAAiB,EAAE;IAC1B,WAAW,EACT,iPAAiP;CACpP,CAAC,CAAC;AAEL,MAAM,iBAAiB,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IAC3E,UAAU,EAAE,2BAA2B;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC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,CAAC;IACd,IAAI,EAAE,CAAC,eAAe,CAAC;IACvB,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IAC9C,OAAO,EAAE;QACP,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;gBACtB,WAAW,EACT,gFAAgF;aACnF,CAAC;SACH,CAAC;KACH;IACD,SAAS,EAAE;QACT,GAAG,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE;QACtC,GAAG,EAAE;YACH,WAAW,EAAE,8CAA8C;YAC3D,OAAO,EAAE,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE;SACzD;QACD,GAAG,EAAE;YACH,WAAW,EAAE,yBAAyB;YACtC,OAAO,EAAE,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE;SACzD;QACD,GAAG,EAAE;YACH,WAAW,EACT,2EAA2E;YAC7E,OAAO,EAAE,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE;SACzD;QACD,GAAG,EAAE;YACH,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE;SACzD;QACD,GAAG,EAAE;YACH,WAAW,EACT,6EAA6E;YAC/E,OAAO,EAAE,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE;SACzD;KACF;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/schemas/onboarding-openapi.d.ts b/dist/schemas/onboarding-openapi.d.ts new file mode 100644 index 0000000000..ed29eaf6de --- /dev/null +++ b/dist/schemas/onboarding-openapi.d.ts @@ -0,0 +1,27 @@ +/** + * OpenAPI registrations for the onboarding REST surface. + * + * `POST /api/organizations` has existed in production for a long time but + * has only ever been documented as a private endpoint exercised by the AAO + * dashboard's `/onboarding` form. Surfacing it in the public spec is the + * minimum-surface answer to the storefront-bootstrap question: a + * third-party app holding only a user's OAuth token needs *one* documented + * call to materialize the org, then `POST /api/me/agents` to land an agent + * (which auto-creates the member profile on first call). + * + * Two fields the handler accepts but the public schema deliberately omits: + * + * - `membership_tier` — owned exclusively by the Stripe webhook. Accepting + * it from the caller would let any user stamp tier intent on their org + * row, leaking tier-gated UI state until/unless a real subscription + * overwrites the column. + * - `corporate_domain` — server derives the value from the authenticated + * user's email. Accepting it as a field invited 400s when a caller's + * value disagreed with their email and gave nothing back when it agreed. + * + * Kept in its own module so the spec generator's import graph stays free + * of route handlers (each route file's transitive imports pull in WorkOS + * init, which fails at module load without env vars). + */ +export {}; +//# sourceMappingURL=onboarding-openapi.d.ts.map \ No newline at end of file diff --git a/dist/schemas/onboarding-openapi.d.ts.map b/dist/schemas/onboarding-openapi.d.ts.map new file mode 100644 index 0000000000..9e449fbf0f --- /dev/null +++ b/dist/schemas/onboarding-openapi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"onboarding-openapi.d.ts","sourceRoot":"","sources":["../../server/src/schemas/onboarding-openapi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG"} \ No newline at end of file diff --git a/dist/schemas/onboarding-openapi.js b/dist/schemas/onboarding-openapi.js new file mode 100644 index 0000000000..d3e3074486 --- /dev/null +++ b/dist/schemas/onboarding-openapi.js @@ -0,0 +1,135 @@ +/** + * OpenAPI registrations for the onboarding REST surface. + * + * `POST /api/organizations` has existed in production for a long time but + * has only ever been documented as a private endpoint exercised by the AAO + * dashboard's `/onboarding` form. Surfacing it in the public spec is the + * minimum-surface answer to the storefront-bootstrap question: a + * third-party app holding only a user's OAuth token needs *one* documented + * call to materialize the org, then `POST /api/me/agents` to land an agent + * (which auto-creates the member profile on first call). + * + * Two fields the handler accepts but the public schema deliberately omits: + * + * - `membership_tier` — owned exclusively by the Stripe webhook. Accepting + * it from the caller would let any user stamp tier intent on their org + * row, leaking tier-gated UI state until/unless a real subscription + * overwrites the column. + * - `corporate_domain` — server derives the value from the authenticated + * user's email. Accepting it as a field invited 400s when a caller's + * value disagreed with their email and gave nothing back when it agreed. + * + * Kept in its own module so the spec generator's import graph stays free + * of route handlers (each route file's transitive imports pull in WorkOS + * init, which fails at module load without env vars). + */ +import { z } from 'zod'; +import { registry, ErrorSchema } from './registry.js'; +const OrganizationCompanyTypeSchema = z + .enum(['adtech', 'agency', 'brand', 'publisher', 'data', 'ai', 'other']) + .openapi('OrganizationCompanyType', { + description: "Coarse classification of the organization's role in the open ad ecosystem. Drives default verification badges and the member profile's display category.", +}); +const OrganizationRevenueTierSchema = z + .enum(['under_1m', '1m_5m', '5m_50m', '50m_250m', '250m_1b', '1b_plus']) + .openapi('OrganizationRevenueTier', { + description: 'Annual revenue band, USD. Drives membership-tier eligibility for company-tier seats.', +}); +const CreateOrganizationInputSchema = z + .object({ + organization_name: z.string().min(1).max(200).openapi({ + description: "Display name for the organization. Used both as the org row name and (when auto-bootstrapping a member profile via the first agent registration) as the profile's `display_name`.", + example: 'Acme Media', + }), + is_personal: z.boolean().optional().openapi({ + description: 'Set to `true` to create a personal workspace instead of a corporate organization. Personal workspaces skip corporate-domain verification, are limited to one per user, and cannot host the `company_*` membership tiers.', + default: false, + }), + company_type: OrganizationCompanyTypeSchema.optional(), + revenue_tier: OrganizationRevenueTierSchema.optional(), + marketing_opt_in: z.boolean().optional().openapi({ + description: 'Whether the caller opted in to AAO marketing communications. Recorded once per user (not overwritten on subsequent calls). Independent of Terms-of-Service consent, which is recorded server-side from the request context.', + default: false, + }), +}) + .openapi('CreateOrganizationInput', { + description: [ + 'Request body for `POST /api/organizations`.', + "Bootstraps a WorkOS organization, mirrors the caller as `owner`, records the caller's ToS / privacy-policy acceptance, and (for non-personal orgs) inserts an email-verified record into `organization_domains` so subsequent registry calls can skip explicit domain-verification.", + "Membership tier and corporate domain are *not* caller-supplied: the tier is set by the Stripe webhook on subscription events, and the corporate domain is derived from the authenticated user's email.", + ].join('\n\n'), +}); +const CreateOrganizationResponseSchema = z + .object({ + success: z.boolean().optional(), + organization: z + .object({ + id: z.string().openapi({ example: 'org_01HXZAB123' }), + name: z.string().openapi({ example: 'Acme Media' }), + }) + .optional(), + id: z.string().optional().openapi({ + description: "Set on the **prospect-adoption** path: when an org with the user's email domain already exists in a `prospect` state (i.e. the registry pre-recorded it from a brand crawl but no human had claimed it yet), this call adopts that org for the caller instead of creating a new one.", + }), + name: z.string().optional(), + adopted: z.boolean().optional().openapi({ + description: '`true` when the response is the prospect-adoption path. When `true`, no new WorkOS organization was created — the caller is now the owner of an existing prospect record.', + }), +}) + .openapi('CreateOrganizationResponse', { + description: 'Response from `POST /api/organizations`. The body shape varies by path: a fresh creation returns `{ success: true, organization: { id, name } }`; a prospect adoption returns `{ id, name, adopted: true }` directly. Both paths are 2xx; downstream callers should treat any `2xx` as "the org now exists and you are an owner of it" and read whichever id is present.', +}); +registry.registerPath({ + method: 'post', + path: '/api/organizations', + operationId: 'createOrganization', + summary: 'Create or adopt my organization', + description: [ + "Bootstrap the caller's organization explicitly. Use this when the caller wants to control the organization name, `company_type`, `revenue_tier`, or `is_personal` flag before any agents are registered.", + "**Most storefront-style integrations don't need this call** — `POST /api/me/agents` will auto-create an org for a fresh OAuth user (corporate or personal workspace based on the email domain) and surface `org_auto_created: true` in the response. Reach for `POST /api/organizations` only when the auto-derived defaults aren't acceptable.", + 'Three outcomes depending on the caller\'s state:', + "- **Fresh create** (most common): a new WorkOS organization is created, the caller is added as `owner`, the corporate domain is recorded as email-verified, and ToS / privacy-policy acceptance is logged from the request context. Returns `{ success: true, organization: { id, name } }`.", + "- **Prospect adoption**: an organization with the caller's email domain already exists as a `prospect` (the registry pre-recorded it from a brand crawl but no human had claimed it yet). The caller is promoted to `owner` of the existing record instead of forking a duplicate. Returns `{ id, name, adopted: true }`.", + '- **Already-active conflict**: the org exists and is already claimed by another paying member or a previously joined user. Returns `409` with the existing org id so the caller can switch to a join-request flow (`POST /api/organizations/:orgId/join-requests`) instead of trying to register a duplicate.', + 'Tier transitions happen via the billing flow only — there is no `membership_tier` field on this endpoint. After org creation, send the user to `POST /api/checkout-session` (or the dashboard `/membership` page) to start a subscription; the Stripe webhook is the sole writer of `organizations.membership_tier`.', + 'Rate-limited per user: `15` failed attempts per hour; successful calls do not count against the limit so a legitimate registration is never penalized by earlier validation errors.', + ].join('\n\n'), + tags: ['Onboarding'], + security: [{ bearerAuth: [] }, { oauth2: [] }], + request: { + body: { content: { 'application/json': { schema: CreateOrganizationInputSchema } } }, + }, + responses: { + 200: { + description: 'Prospect adoption — an existing prospect organization for this domain was claimed by the caller. Body is `{ id, name, adopted: true }`.', + content: { 'application/json': { schema: CreateOrganizationResponseSchema } }, + }, + 201: { + description: 'New organization created. Body is `{ success: true, organization: { id, name } }`. The caller is the `owner`; the corporate domain is recorded as email-verified for downstream registry calls.', + content: { 'application/json': { schema: CreateOrganizationResponseSchema } }, + }, + 400: { + description: [ + 'One of:', + '- `organization_name` missing or invalid', + '- `company_type` / `revenue_tier` value not in the documented enum', + "- caller is on a personal-email domain (gmail.com, yahoo.com, …) and is trying to register a corporate org — register `is_personal: true` instead", + '- per-user organization cap reached (10 orgs per user)', + ].join('\n'), + content: { 'application/json': { schema: ErrorSchema } }, + }, + 401: { + description: 'Authentication required', + content: { 'application/json': { schema: ErrorSchema } }, + }, + 409: { + description: "An active organization already exists for this caller's email domain. The body includes `existing_org_id` and `existing_org_name`; the caller should switch to the join-request flow rather than retrying.", + content: { 'application/json': { schema: ErrorSchema } }, + }, + 429: { + description: 'Rate limit exceeded — 15 failed attempts per hour per user. Successful calls do not count against the limit.', + content: { 'application/json': { schema: ErrorSchema } }, + }, + }, +}); +//# sourceMappingURL=onboarding-openapi.js.map \ No newline at end of file diff --git a/dist/schemas/onboarding-openapi.js.map b/dist/schemas/onboarding-openapi.js.map new file mode 100644 index 0000000000..9fb894c315 --- /dev/null +++ b/dist/schemas/onboarding-openapi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"onboarding-openapi.js","sourceRoot":"","sources":["../../server/src/schemas/onboarding-openapi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,6BAA6B,GAAG,CAAC;KACpC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;KACvE,OAAO,CAAC,yBAAyB,EAAE;IAClC,WAAW,EACT,0JAA0J;CAC7J,CAAC,CAAC;AAEL,MAAM,6BAA6B,GAAG,CAAC;KACpC,IAAI,CAAC,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;KACvE,OAAO,CAAC,yBAAyB,EAAE;IAClC,WAAW,EACT,sFAAsF;CACzF,CAAC,CAAC;AAEL,MAAM,6BAA6B,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;QACpD,WAAW,EACT,mLAAmL;QACrL,OAAO,EAAE,YAAY;KACtB,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QAC1C,WAAW,EACT,0NAA0N;QAC5N,OAAO,EAAE,KAAK;KACf,CAAC;IACF,YAAY,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IACtD,YAAY,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IACtD,gBAAgB,EAA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