create-ailk 0.35.1 → 0.37.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.
Files changed (169) hide show
  1. package/README.md +1 -1
  2. package/component-catalog.json +51 -1
  3. package/component-catalog.md +8 -5
  4. package/dist/lib/env-catalog.js +8 -0
  5. package/dist/surfaces.js +66 -22
  6. package/dist/topology.d.ts +4 -4
  7. package/dist/topology.js +104 -60
  8. package/dist/update.d.ts +19 -1
  9. package/dist/update.js +293 -35
  10. package/package.json +3 -3
  11. package/templates/.env.example +38 -0
  12. package/templates/apps/api/.env.example +45 -0
  13. package/templates/apps/api/CLAUDE.md +12 -4
  14. package/templates/apps/api/src/lib/__mocks__/prisma.ts +7 -0
  15. package/templates/apps/mcp/CLAUDE.md +4 -2
  16. package/templates/apps/web/.env.example +16 -0
  17. package/templates/apps/web/CLAUDE.md +73 -5
  18. package/templates/apps/web/app/[locale]/(auth)/__tests__/password-reset.test.tsx +2 -0
  19. package/templates/apps/web/app/[locale]/(auth)/reset-password/__tests__/return.test.tsx +179 -0
  20. package/templates/apps/web/app/[locale]/(auth)/reset-password/page.tsx +22 -2
  21. package/templates/apps/web/app/[locale]/(auth)/reset-password/reset-password-card.tsx +9 -2
  22. package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/page.test.tsx +52 -1
  23. package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/remembered-method.test.ts +43 -0
  24. package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/sign-in-card.test.tsx +108 -1
  25. package/templates/apps/web/app/[locale]/(auth)/sign-in/page.tsx +36 -3
  26. package/templates/apps/web/app/[locale]/(auth)/sign-in/remembered-method.ts +37 -0
  27. package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-card.tsx +90 -33
  28. package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-text.ts +9 -4
  29. package/templates/apps/web/app/[locale]/(authed)/__tests__/gate.test.tsx +79 -348
  30. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/billing.test.tsx +241 -66
  31. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/general.test.tsx +242 -28
  32. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/hub-mode.test.tsx +377 -151
  33. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/item.test.tsx +26 -1
  34. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout-sign-out.test.tsx +10 -5
  35. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout.test.tsx +17 -6
  36. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-menu.test.tsx +51 -12
  37. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-popups.test.tsx +17 -2
  38. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/notifications.test.tsx +153 -2
  39. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/page.test.tsx +206 -23
  40. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/popups.test.tsx +150 -188
  41. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/privacy.test.tsx +235 -177
  42. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/rich-translator.ts +63 -0
  43. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/security.test.tsx +0 -3
  44. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/thread.test.tsx +340 -0
  45. package/templates/apps/web/app/[locale]/(authed)/account/account-data.ts +7 -5
  46. package/templates/apps/web/app/[locale]/(authed)/account/account-frame.tsx +20 -4
  47. package/templates/apps/web/app/[locale]/(authed)/account/actions.ts +8 -4
  48. package/templates/apps/web/app/[locale]/(authed)/account/appointments/[slug]/page.tsx +161 -0
  49. package/templates/apps/web/app/[locale]/(authed)/account/appointments/__tests__/page.test.tsx +426 -0
  50. package/templates/apps/web/app/[locale]/(authed)/account/appointments/appointments-data.ts +76 -0
  51. package/templates/apps/web/app/[locale]/(authed)/account/appointments/page.tsx +139 -0
  52. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/page.tsx +92 -24
  53. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/versions/[version]/file/route.ts +32 -1
  54. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/file-route.test.ts +76 -3
  55. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/page.test.tsx +290 -41
  56. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/artifact-data.ts +109 -11
  57. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/page.tsx +43 -44
  58. package/templates/apps/web/app/[locale]/(authed)/account/billing/__tests__/offerings.test.ts +99 -0
  59. package/templates/apps/web/app/[locale]/(authed)/account/billing/offerings.ts +123 -0
  60. package/templates/apps/web/app/[locale]/(authed)/account/billing/page.tsx +323 -73
  61. package/templates/apps/web/app/[locale]/(authed)/account/billing-source.ts +199 -43
  62. package/templates/apps/web/app/[locale]/(authed)/account/components/request-quote.tsx +52 -7
  63. package/templates/apps/web/app/[locale]/(authed)/account/connect/__tests__/page.test.tsx +8 -1
  64. package/templates/apps/web/app/[locale]/(authed)/account/connect/page.tsx +7 -3
  65. package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/phone-verification.test.tsx +215 -0
  66. package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/seam-imports.test.ts +65 -0
  67. package/templates/apps/web/app/[locale]/(authed)/account/general/account-name.ts +36 -0
  68. package/templates/apps/web/app/[locale]/(authed)/account/general/contact-actions.ts +70 -2
  69. package/templates/apps/web/app/[locale]/(authed)/account/general/contact-details.tsx +42 -0
  70. package/templates/apps/web/app/[locale]/(authed)/account/general/page.tsx +97 -53
  71. package/templates/apps/web/app/[locale]/(authed)/account/general/phone-actions.ts +122 -0
  72. package/templates/apps/web/app/[locale]/(authed)/account/general/phone-verification.tsx +215 -0
  73. package/templates/apps/web/app/[locale]/(authed)/account/general/photo-actions.ts +73 -0
  74. package/templates/apps/web/app/[locale]/(authed)/account/general/profile-form.tsx +12 -9
  75. package/templates/apps/web/app/[locale]/(authed)/account/general/profile-source.ts +18 -4
  76. package/templates/apps/web/app/[locale]/(authed)/account/inbox/[kind]/[id]/page.tsx +20 -2
  77. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/member-thread-composer.tsx +43 -0
  78. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/page.tsx +125 -0
  79. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-data.ts +88 -0
  80. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-write.ts +31 -0
  81. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/invitation-id.test.ts +35 -0
  82. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/page.test.tsx +266 -0
  83. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/actions.ts +116 -0
  84. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/invitation-id.ts +12 -0
  85. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/page.tsx +154 -0
  86. package/templates/apps/web/app/[locale]/(authed)/account/layout.tsx +9 -6
  87. package/templates/apps/web/app/[locale]/(authed)/account/new-menu.tsx +33 -8
  88. package/templates/apps/web/app/[locale]/(authed)/account/new-popups.tsx +31 -52
  89. package/templates/apps/web/app/[locale]/(authed)/account/notifications/page.tsx +44 -4
  90. package/templates/apps/web/app/[locale]/(authed)/account/page.tsx +69 -49
  91. package/templates/apps/web/app/[locale]/(authed)/account/privacy/__tests__/export-route.test.ts +173 -0
  92. package/templates/apps/web/app/[locale]/(authed)/account/privacy/actions.ts +42 -4
  93. package/templates/apps/web/app/[locale]/(authed)/account/privacy/export/route.ts +102 -0
  94. package/templates/apps/web/app/[locale]/(authed)/account/privacy/page.tsx +147 -137
  95. package/templates/apps/web/app/[locale]/(authed)/account/security/__tests__/hub-variant.test.tsx +258 -0
  96. package/templates/apps/web/app/[locale]/(authed)/account/security/page.tsx +21 -22
  97. package/templates/apps/web/app/[locale]/(authed)/account/security/security-panel.tsx +34 -6
  98. package/templates/apps/web/app/[locale]/(authed)/account/security/security-source.ts +37 -7
  99. package/templates/apps/web/app/[locale]/(authed)/account/settings/page.tsx +0 -2
  100. package/templates/apps/web/app/[locale]/(authed)/account/settings-frame.tsx +8 -5
  101. package/templates/apps/web/app/[locale]/(authed)/layout.tsx +15 -13
  102. package/templates/apps/web/app/[locale]/(authed)/signed-out-gate.generated.tsx +20 -52
  103. package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsClient.tsx +3 -2
  104. package/templates/apps/web/app/[locale]/layout.tsx +24 -75
  105. package/templates/apps/web/app/[locale]/purchase/__tests__/success.test.tsx +50 -0
  106. package/templates/apps/web/app/[locale]/purchase/success/page.tsx +48 -7
  107. package/templates/apps/web/app/api/auth/hub/__tests__/entry-routes.test.ts +749 -0
  108. package/templates/apps/web/app/api/auth/hub/authorize/__tests__/route.test.ts +166 -7
  109. package/templates/apps/web/app/api/auth/hub/authorize/route.ts +96 -30
  110. package/templates/apps/web/app/api/auth/hub/continuation.ts +51 -2
  111. package/templates/apps/web/app/api/auth/hub/email/route.ts +111 -0
  112. package/templates/apps/web/app/api/auth/hub/entry-shared.ts +163 -0
  113. package/templates/apps/web/app/api/auth/hub/password/__tests__/return.test.ts +86 -0
  114. package/templates/apps/web/app/api/auth/hub/password/__tests__/route.test.ts +368 -0
  115. package/templates/apps/web/app/api/auth/hub/password/return.ts +86 -0
  116. package/templates/apps/web/app/api/auth/hub/password/route.ts +171 -0
  117. package/templates/apps/web/app/api/auth/hub/purchase/route.ts +230 -0
  118. package/templates/apps/web/app/api/auth/hub/purchase-link/route.ts +174 -0
  119. package/templates/apps/web/app/api/auth/hub/sign-up/route.ts +60 -0
  120. package/templates/apps/web/app/api/auth/hub/sign-up-evidence.ts +97 -0
  121. package/templates/apps/web/app/api/hub-session/__tests__/routes.test.ts +738 -7
  122. package/templates/apps/web/app/api/hub-session/callback/route.ts +13 -47
  123. package/templates/apps/web/app/api/hub-session/email/route.ts +125 -0
  124. package/templates/apps/web/app/api/hub-session/one-tap/nonce/route.ts +49 -0
  125. package/templates/apps/web/app/api/hub-session/one-tap/route.ts +106 -0
  126. package/templates/apps/web/app/api/hub-session/open/route.ts +111 -0
  127. package/templates/apps/web/app/api/hub-session/password/return/route.ts +69 -0
  128. package/templates/apps/web/app/api/hub-session/password/route.ts +106 -0
  129. package/templates/apps/web/app/api/hub-session/sign-in/route.ts +23 -40
  130. package/templates/apps/web/app/api/hub-session/sign-out/route.ts +1 -10
  131. package/templates/apps/web/auth.ts +133 -6
  132. package/templates/apps/web/components/sign-out-trigger.tsx +1 -1
  133. package/templates/apps/web/lib/__tests__/account-config.test.ts +129 -1
  134. package/templates/apps/web/lib/__tests__/auth-email.test.ts +141 -0
  135. package/templates/apps/web/lib/__tests__/auth-phone.test.ts +445 -0
  136. package/templates/apps/web/lib/__tests__/auth-sms.test.ts +140 -0
  137. package/templates/apps/web/lib/__tests__/fixtures/tsconfig.flow.json +18 -0
  138. package/templates/apps/web/lib/__tests__/offerings-pricing.test.ts +33 -0
  139. package/templates/apps/web/lib/__tests__/site-header.test.ts +13 -0
  140. package/templates/apps/web/lib/__tests__/telemetry-scrub.test.ts +19 -1
  141. package/templates/apps/web/lib/account-config.ts +132 -8
  142. package/templates/apps/web/lib/auth-email.ts +62 -6
  143. package/templates/apps/web/lib/auth-env.ts +13 -0
  144. package/templates/apps/web/lib/auth-routes.ts +11 -6
  145. package/templates/apps/web/lib/auth-sms.ts +180 -0
  146. package/templates/apps/web/lib/hub-session/__tests__/hub-session.test.ts +28 -0
  147. package/templates/apps/web/lib/hub-session/__tests__/spoke-sign-in.test.tsx +332 -0
  148. package/templates/apps/web/lib/hub-session/config.ts +7 -1
  149. package/templates/apps/web/lib/hub-session/entry.ts +238 -0
  150. package/templates/apps/web/lib/hub-session/index.ts +1 -4
  151. package/templates/apps/web/lib/hub-session/one-tap.tsx +148 -0
  152. package/templates/apps/web/lib/hub-session/session.ts +120 -2
  153. package/templates/apps/web/lib/hub-session/spoke-sign-in.tsx +277 -0
  154. package/templates/apps/web/lib/offerings-pricing.ts +4 -1
  155. package/templates/apps/web/lib/site-header.ts +14 -1
  156. package/templates/apps/web/lib/telemetry-scrub.ts +11 -0
  157. package/templates/apps/web/lib/topology.generated.ts +39 -0
  158. package/templates/apps/web/messages/en.json +264 -96
  159. package/templates/apps/web/middleware.ts +34 -2
  160. package/templates/apps/web/security-headers.config.ts +21 -0
  161. package/versions.json +48 -48
  162. package/templates/apps/web/app/[locale]/(authed)/account/components/schedule-service.tsx +0 -276
  163. package/templates/apps/web/app/[locale]/(authed)/account/components/send-message.tsx +0 -128
  164. package/templates/apps/web/app/[locale]/(authed)/account/settings/__tests__/theme-modes.test.ts +0 -42
  165. package/templates/apps/web/app/[locale]/(authed)/account/settings/theme-modes.ts +0 -40
  166. package/templates/apps/web/app/[locale]/(authed)/sign-in-gate.tsx +0 -162
  167. package/templates/apps/web/components/signed-in-nav.tsx +0 -79
  168. package/templates/apps/web/lib/hub-session/__tests__/sign-in-gate.test.tsx +0 -180
  169. package/templates/apps/web/lib/hub-session/sign-in-gate.tsx +0 -162
@@ -374,7 +374,8 @@
374
374
  "unknownBody": "Check your email for the receipt from checkout — it has everything about your order.",
375
375
  "ctaHeadline": "Keep going",
376
376
  "ctaDescription": "Have a look at what else we offer.",
377
- "ctaLabel": "Browse services"
377
+ "ctaLabel": "Browse services",
378
+ "openAccount": "Open your account"
378
379
  },
379
380
  "cancel": {
380
381
  "title": "Checkout canceled",
@@ -621,6 +622,8 @@
621
622
  "emailLinkSentHeading": "Check your email",
622
623
  "emailLinkSentSubhead": "Look for a message from this site.",
623
624
  "emailLinkBack": "Back to sign in",
625
+ "continueWith": "Continue with",
626
+ "useAnotherWay": "Use another way",
624
627
  "emailLinkSentBody": "If an account uses that address, a sign-in link is on its way. It works once and expires in 5 minutes.",
625
628
  "emailLinkFailed": "We couldn't send a sign-in link. Try again.",
626
629
  "emailLinkRateLimited": "Too many requests. Wait a minute, then try again.",
@@ -708,13 +711,14 @@
708
711
  },
709
712
  "account": {
710
713
  "title": "Your account",
714
+ "yourAccount": "Your account",
711
715
  "description": "What changed, what's coming, and what needs you.",
712
716
  "artifacts": {
713
717
  "title": "Artifacts",
714
718
  "lead": "Work delivered to you, newest first.",
715
- "all": "All artifacts",
719
+ "all": "All Artifacts",
716
720
  "facets": "Filter artifacts",
717
- "reviewGroup": "Review",
721
+ "statusGroup": "Status",
718
722
  "filter": "Show",
719
723
  "empty": "Nothing has been delivered to you yet.",
720
724
  "facetEmpty": "No artifacts here.",
@@ -725,23 +729,41 @@
725
729
  "caption": "Artifact",
726
730
  "versions": "Versions",
727
731
  "version": "Version {version}",
728
- "deliveredOn": "Delivered {date}",
729
- "approvedOn": "Approved {date}",
732
+ "deliveredOn": "Delivered <date></date>",
733
+ "approvedOn": "Approved <date></date>",
730
734
  "download": "Download {filename}",
731
735
  "view": "View",
732
736
  "columns": {
733
737
  "title": "Title",
734
- "latest": "Latest",
735
- "delivered": "Delivered",
736
- "review": "Review"
738
+ "type": "Type",
739
+ "version": "Version",
740
+ "status": "Status"
741
+ },
742
+ "types": {
743
+ "pdf": "PDF",
744
+ "png": "PNG image",
745
+ "jpeg": "JPEG image",
746
+ "gif": "GIF image",
747
+ "webp": "WebP image",
748
+ "avif": "AVIF image",
749
+ "file": "File",
750
+ "link": "Link"
737
751
  },
738
752
  "states": {
739
753
  "approved": "Approved",
740
- "changesRequested": "Changes requested",
741
- "ready": "Ready for review"
754
+ "changesRequested": "Changes requested"
742
755
  },
743
- "reviewApproved": "You approved this version on {date}.",
744
- "reviewChangesRequested": "You requested changes on {date}.",
756
+ "preview": {
757
+ "open": "Open {filename} full size",
758
+ "details": "Details",
759
+ "filename": "Filename",
760
+ "type": "Type",
761
+ "zoomIn": "Zoom in",
762
+ "zoomOut": "Zoom out",
763
+ "copyLink": "Copy link"
764
+ },
765
+ "reviewApproved": "You approved this version on <date></date>.",
766
+ "reviewChangesRequested": "You requested changes on <date></date>.",
745
767
  "review": {
746
768
  "heading": "Review version {version}",
747
769
  "comment": "Comment",
@@ -766,7 +788,7 @@
766
788
  "heading": "Your decision on version {version}",
767
789
  "pay": "Pay now",
768
790
  "paying": "Opening payment…",
769
- "paid": "Paid {date}",
791
+ "paid": "Paid <date></date>",
770
792
  "paidPending": "Payment received — it may take a minute to show here.",
771
793
  "payError": "We couldn't open the payment page. Try again."
772
794
  }
@@ -791,7 +813,8 @@
791
813
  "openAside": "Open For you",
792
814
  "closeAside": "Close For you",
793
815
  "library": "Library",
794
- "artifacts": "Artifacts"
816
+ "artifacts": "Artifacts",
817
+ "appointments": "Appointments"
795
818
  },
796
819
  "forYou": {
797
820
  "title": "For you",
@@ -811,15 +834,21 @@
811
834
  "close": "Close",
812
835
  "addName": "Add your name",
813
836
  "types": {
814
- "profile": "Profile"
837
+ "profile": "Profile",
838
+ "onboarding": "Getting started"
839
+ },
840
+ "onboarding": {
841
+ "onboarding": "Tell us about yourself",
842
+ "email": "Confirm your email address",
843
+ "booking": "Book your first appointment"
815
844
  }
816
845
  },
817
846
  "inbox": {
818
847
  "title": "Inbox",
819
- "lead": "What changed, and what's coming.",
820
848
  "tabs": {
821
849
  "all": "All",
822
- "purchases": "Purchases",
850
+ "messages": "Messages",
851
+ "purchases": "Orders",
823
852
  "scheduled": "Scheduled"
824
853
  },
825
854
  "empty": "Nothing here yet.",
@@ -844,6 +873,8 @@
844
873
  "title": "Settings",
845
874
  "back": "Back",
846
875
  "account": "Account",
876
+ "menu": "Open settings menu",
877
+ "closeMenu": "Close settings menu",
847
878
  "general": {
848
879
  "title": "General",
849
880
  "lead": "Your profile and appearance.",
@@ -854,7 +885,6 @@
854
885
  "name": "Name",
855
886
  "photo": "Photo",
856
887
  "photoPlaceholder": "https://",
857
- "photoHint": "A link to a square image, starting with https://. Leave it empty to show your initials.",
858
888
  "email": "Email",
859
889
  "save": "Save changes",
860
890
  "saving": "Saving…",
@@ -866,7 +896,6 @@
866
896
  "unavailable": "Profile changes aren't available on this site yet.",
867
897
  "contact": {
868
898
  "title": "Contact details",
869
- "lead": "Kept on this site, for the people you work with here.",
870
899
  "givenName": "First name",
871
900
  "familyName": "Last name",
872
901
  "telephone": "Phone",
@@ -912,58 +941,88 @@
912
941
  "magicLink": "a link sent to {email}",
913
942
  "password": "your email and password"
914
943
  },
915
- "managedAt": "Your sign-in is managed at {hub}.",
916
- "managedUnnamed": "Your sign-in is managed by our main site.",
917
- "manageOnHub": "Manage sign-in on {hub}",
918
944
  "passwordUnavailable": "We couldn't check your password settings."
919
945
  },
920
946
  "notifications": {
921
947
  "title": "Notifications",
922
948
  "lead": "What we send you.",
923
- "empty": "There's nothing to set here yet."
949
+ "empty": "There's nothing to set here yet.",
950
+ "alwaysSent": "Receipts, sign-in links and security notices are always sent.",
951
+ "purposes": {
952
+ "email_notifications": {
953
+ "title": "Email notifications",
954
+ "description": "Updates about your work here: messages, deliverables and requests."
955
+ },
956
+ "onboarding": {
957
+ "title": "Onboarding",
958
+ "description": "Getting-started steps after your first sign-in."
959
+ },
960
+ "newsletter": {
961
+ "title": "Marketing",
962
+ "description": "This site's newsletter and offers by email."
963
+ }
964
+ }
924
965
  },
925
966
  "signIn": {
926
967
  "lead": "How you sign in to this site."
927
968
  },
928
969
  "privacy": {
929
970
  "title": "Privacy",
930
- "lead": "Cookies and your data.",
931
- "summary": "How we use your data.",
932
- "policyLink": "Read our privacy policy",
933
- "cookiesTitle": "Cookies",
934
- "cookiesAccepted": "Accepted",
935
- "cookiesDeclined": "Declined",
936
- "cookiesUnset": "Not chosen yet",
937
- "cookiesChange": "Change",
938
- "consentsTitle": "Data use",
939
- "consentsEmpty": "This site asks for no other data-use consents.",
940
- "agreementsTitle": "Agreements accepted",
941
- "agreementsEmpty": "None yet",
942
- "version": "Version {version}",
971
+ "lead": "We believe in transparent data practices. Learn how your information is protected when using our products, and view our <policy>Privacy Policy</policy> for more details.",
972
+ "dataUse": {
973
+ "title": "How we use your data",
974
+ "bullet1": "With your permission, we will use your communications, artifacts, and sessions to train and improve our AI models. This helps us to make AI more helpful and accurate for everyone and to develop more robust safeguards against harmful outputs.",
975
+ "bullet2": "We may conduct aggregated, anonymized analysis of data to understand how people use products and services."
976
+ },
977
+ "purposes": {
978
+ "ai_training": {
979
+ "title": "Help improve our AI models",
980
+ "description": "Allow the use of your communications, artifacts, and sessions to train and improve AI models."
981
+ }
982
+ },
983
+ "consentsEmpty": "This site asks for no data-use consents.",
943
984
  "given": "Given {date}",
944
985
  "withdrawn": "Withdrawn {date}",
945
- "accepted": "Accepted {date}",
946
986
  "unavailable": "Your consent choices can't be shown right now.",
947
- "deletion": "Request account deletion",
948
- "deletionLead": "Ask the site owner to delete your account and its data. We'll confirm by email.",
949
- "deletionSentSite": "Sent to the site operator. They'll confirm by email.",
950
- "deletionSentHub": "Sent to the hub operator. They'll confirm by email.",
951
- "deletionUnverified": "Confirm your email address first, then ask again.",
952
- "deletionUnavailable": "This site can't take deletion requests right now.",
953
- "deletionError": "We couldn't send your request. Try again in a moment.",
954
- "deletionViaSupport": "To ask for your account to be deleted, contact support.",
955
- "deletionSupportLink": "Contact support"
987
+ "yourData": {
988
+ "title": "Your data",
989
+ "exportLabel": "Export data",
990
+ "exportButton": "Export data",
991
+ "deleteLabel": "Delete stored sessions",
992
+ "deleteDescription": "Permanently delete server-side copies of your stored sessions.",
993
+ "deleteButton": "Delete",
994
+ "confirmTitle": "Delete stored sessions?",
995
+ "confirmBody": "This permanently deletes the server-side copies of the forms and assessments you've walked through on this site. Answers you sent at the end of a walk stay with that submission, and a download link from a completed walk may stop working. Your messages, requests and files stay.",
996
+ "confirmCancel": "Cancel",
997
+ "confirmDelete": "Delete",
998
+ "deleting": "Deleting…",
999
+ "deleted": "{count, plural, =0 {There were no stored sessions to delete.} one {Deleted # stored session.} other {Deleted # stored sessions.}}",
1000
+ "deleteFailed": "We couldn't delete your stored sessions. Try again in a moment.",
1001
+ "accountDeletion": "To ask for your account and its data to be deleted, contact support.",
1002
+ "accountDeletionLink": "Contact support"
1003
+ }
956
1004
  },
957
1005
  "billing": {
958
1006
  "title": "Billing",
959
- "lead": "Your plan and payment method.",
960
- "currentPlan": "Current plan",
1007
+ "lead": "Your plan, purchases and payment method.",
961
1008
  "unnamedPlan": "Your subscription",
962
- "accessEnds": "Access ends {date}",
963
- "card": "{brand} ending in {last4}, expires {month}/{year}",
964
- "noCard": "No card on file",
965
- "manage": "Manage billing",
966
- "none": "You don't have a subscription.",
1009
+ "perMonth": "{amount}/mo",
1010
+ "perYear": "{amount}/yr",
1011
+ "renews": "Renews on <date></date>",
1012
+ "accessEnds": "Access ends <date></date>",
1013
+ "card": "{brand} {last4}",
1014
+ "manage": "Manage plan",
1015
+ "upgrade": "Upgrade",
1016
+ "planFallback": "Entry-level plan with access to 1, 2, 3, and more.",
1017
+ "claimOffer": "Claim offer",
1018
+ "dismissOffer": "Dismiss offer",
1019
+ "history": "History",
1020
+ "historyDate": "Date",
1021
+ "historyOffering": "Offering",
1022
+ "historyAmount": "Amount",
1023
+ "historyReceipt": "Receipt",
1024
+ "historyView": "View",
1025
+ "historyUnavailable": "We couldn't load your purchases.",
967
1026
  "unavailable": "We couldn't load your billing details.",
968
1027
  "unreadable": "Some of your billing is with another Stripe account, so it isn't shown here.",
969
1028
  "statuses": {
@@ -985,16 +1044,55 @@
985
1044
  "gate": {
986
1045
  "emptyHeadline": "Sign-in isn't available yet",
987
1046
  "emptyDescription": "This site hasn't turned on sign-in for members yet. Check back soon, or contact the site owner.",
988
- "signInLink": "Go to the sign-in page",
989
1047
  "homeLink": "Back to the site",
990
- "hubHeadline": "Sign in to {site}",
991
- "hubDescription": "You sign in on our main site, then come straight back here.",
992
- "hubSignIn": "Sign in",
993
1048
  "title": "Sign in"
994
1049
  },
1050
+ "spokeSignIn": {
1051
+ "heading": "Sign in to {site}",
1052
+ "subhead": "Enter your email and we'll send you a link to sign in.",
1053
+ "emailLabel": "Email",
1054
+ "submit": "Email me a sign-in link",
1055
+ "newHere": "New here? Accept to create your account with the same link.",
1056
+ "agreementsError": "To create an account, accept every agreement.",
1057
+ "google": "Continue with Google",
1058
+ "sent": "Check your email",
1059
+ "sentBody": "If that address can sign in here, a sign-in link is on its way. It works for 5 minutes.",
1060
+ "back": "Use another email",
1061
+ "unavailable": "Sign-in isn't available right now. Try again in a few minutes.",
1062
+ "exists": "You already have an account. Enter your email to sign in.",
1063
+ "claimInvalid": "That link has expired or was already used. Enter your email to sign in.",
1064
+ "openHeading": "Open your account",
1065
+ "openLead": "By opening your account you accept:",
1066
+ "open": "Open my account"
1067
+ },
995
1068
  "profile": {
996
1069
  "email": "Email",
997
- "unverified": "Email not verified"
1070
+ "unverified": "Email not verified",
1071
+ "phoneTitle": "Phone",
1072
+ "phoneLead": "A verified number your workspaces can reach you on. Only you can set it.",
1073
+ "phoneNumber": "Mobile number",
1074
+ "phoneNumberHint": "Include the country code, for example +1 555 555 0123.",
1075
+ "phoneSendCode": "Send code",
1076
+ "phoneSending": "Sending…",
1077
+ "phoneCode": "Code",
1078
+ "phoneCodeHint": "The six-digit code we texted you. It expires in 5 minutes.",
1079
+ "phoneVerify": "Verify",
1080
+ "phoneVerifying": "Verifying…",
1081
+ "phoneVerified": "Verified",
1082
+ "phoneRemove": "Remove",
1083
+ "phoneSent": "We texted you a code.",
1084
+ "phoneUnavailable": "Phone verification isn't available on this site.",
1085
+ "phoneUnverifiedEmail": "Confirm your email address first, then you can add a phone.",
1086
+ "phoneErrors": {
1087
+ "invalid_number": "Enter a mobile number with its country code, such as +1 555 555 0123. Only some countries are supported.",
1088
+ "invalid_code": "That code didn't match or has expired. Send a new one.",
1089
+ "taken": "That number is already on another account.",
1090
+ "too_many": "Too many tries. Send a new code.",
1091
+ "unverified": "Confirm your email address first.",
1092
+ "signed_out": "Your session ended. Sign in again.",
1093
+ "unavailable": "Phone verification isn't available on this site.",
1094
+ "failed": "Something went wrong. Try again."
1095
+ }
998
1096
  },
999
1097
  "results": {
1000
1098
  "heading": "My results",
@@ -1009,7 +1107,7 @@
1009
1107
  "open": "Open"
1010
1108
  },
1011
1109
  "purchases": {
1012
- "heading": "My purchases",
1110
+ "heading": "My orders",
1013
1111
  "offer": "Offer",
1014
1112
  "amount": "Amount",
1015
1113
  "period": "Period",
@@ -1025,7 +1123,25 @@
1025
1123
  "pending": "Pending",
1026
1124
  "confirmed": "Confirmed",
1027
1125
  "cancelled": "Cancelled"
1028
- }
1126
+ },
1127
+ "title": "Appointments",
1128
+ "lead": "The appointment types you can book.",
1129
+ "all": "All appointments",
1130
+ "facets": "Filter appointments",
1131
+ "columns": {
1132
+ "title": "Title",
1133
+ "duration": "Duration",
1134
+ "price": "Price"
1135
+ },
1136
+ "duration": "{minutes} min",
1137
+ "free": "Free",
1138
+ "empty": "No appointment types are offered right now.",
1139
+ "error": "We couldn't load your appointment types.",
1140
+ "typeError": "We couldn't load this appointment type.",
1141
+ "retry": "Retry",
1142
+ "back": "\u2190 All appointments",
1143
+ "bookHeading": "Schedule a {title} meeting",
1144
+ "notOffered": "This appointment type is no longer offered."
1029
1145
  },
1030
1146
  "pieces": {
1031
1147
  "heading": "My pieces",
@@ -1042,6 +1158,26 @@
1042
1158
  "download": "Download {filename}",
1043
1159
  "openOnboarding": "Open onboarding"
1044
1160
  },
1161
+ "requests": {
1162
+ "heading": "Sent",
1163
+ "sentAt": "You sent this",
1164
+ "quoteSent": "Your quote request was sent. We'll reply here."
1165
+ },
1166
+ "thread": {
1167
+ "title": "Messages",
1168
+ "open": "Open conversation",
1169
+ "empty": "No messages yet. Write the first one below.",
1170
+ "error": "We couldn't load this conversation.",
1171
+ "composer": {
1172
+ "label": "Send a message",
1173
+ "body": "Message",
1174
+ "placeholder": "Write a message\u2026",
1175
+ "send": "Send",
1176
+ "sending": "Sending\u2026",
1177
+ "sent": "Sent.",
1178
+ "needsContent": "Add a message to send."
1179
+ }
1180
+ },
1045
1181
  "onboarding": {
1046
1182
  "title": "Onboarding",
1047
1183
  "unavailable": "Onboarding isn't open to you here right now.",
@@ -1073,40 +1209,45 @@
1073
1209
  "submitting": "Sending…",
1074
1210
  "optional": "Optional",
1075
1211
  "actions": {
1076
- "scheduleService": "Schedule service",
1212
+ "scheduleService": "Schedule appointment",
1077
1213
  "requestQuote": "Request quote",
1078
1214
  "sendMessage": "Send message"
1079
1215
  },
1080
- "schedule": {
1081
- "service": "Service",
1082
- "duration": "{minutes} min",
1083
- "time": "Time",
1084
- "notes": "Notes",
1085
- "submit": "Book",
1086
- "none": "No times are offered right now. You can send a message instead.",
1087
- "suggest": "Send a message",
1088
- "noSlots": "No open times in the next 14 days."
1089
- },
1090
1216
  "quote": {
1091
- "submit": "Send request"
1092
- },
1093
- "message": {
1094
- "subject": "Subject",
1095
- "body": "Message",
1096
- "link": "Link",
1097
- "linkHelp": "Must start with https://.",
1098
- "submit": "Send"
1217
+ "submit": "Send request",
1218
+ "pickDate": "Pick a date"
1099
1219
  },
1100
1220
  "errors": {
1101
1221
  "linkNotHttps": "A link must start with https://.",
1102
1222
  "answersInvalid": "Some answers do not fit this form. Check them and try again.",
1103
1223
  "requestFormOff": "Requests are switched off right now.",
1104
- "meetingTypeNotOffered": "This service is no longer offered.",
1224
+ "meetingTypeNotOffered": "This appointment type is no longer offered.",
1105
1225
  "slotUnavailable": "That time was just taken. Pick another.",
1106
1226
  "tooManyRequests": "Too many requests. Try again later.",
1107
1227
  "invalidInput": "Check what you entered and try again.",
1108
1228
  "failed": "This could not be sent. Try again."
1109
1229
  }
1230
+ },
1231
+ "invitation": {
1232
+ "title": "Join {organization}",
1233
+ "lead": "{inviter} invited you to join {organization} as {role}.",
1234
+ "leadNoInviter": "You've been invited to join {organization} as {role}.",
1235
+ "accept": "Accept invitation",
1236
+ "joined": "You've joined {organization}.",
1237
+ "joinedLead": "Sign in to the Admin to start working there.",
1238
+ "otherAddress": "This invitation is for a different email address. Sign out and sign in with the invited address.",
1239
+ "expired": "This invitation has expired. Ask the person who invited you to send it again.",
1240
+ "notPending": "This invitation is no longer open.",
1241
+ "alreadyMember": "You're already a member of this organization.",
1242
+ "void": "This invitation can no longer be accepted. Ask an owner or admin to invite you again.",
1243
+ "failed": "We couldn't accept the invitation. Try again.",
1244
+ "roles": {
1245
+ "owner": "an owner",
1246
+ "admin": "an admin",
1247
+ "member": "a member",
1248
+ "editor": "an editor",
1249
+ "viewer": "a viewer"
1250
+ }
1110
1251
  }
1111
1252
  },
1112
1253
  "admin": {
@@ -1289,26 +1430,50 @@
1289
1430
  "liveError": "Couldn't update. Try again.",
1290
1431
  "detail": {
1291
1432
  "backLabel": "Meetings",
1292
- "captionUnit": "Meeting",
1293
1433
  "statusLive": "Live",
1294
1434
  "statusOff": "Off",
1295
- "customersSwitchLabel": "Members only",
1296
- "customersAriaLabel": "{title}: members only",
1297
- "membersOnlyHint": "Signed-in members can use this. A live item stays public.",
1298
- "privateSwitchLabel": "Private",
1299
- "privateAriaLabel": "{title}: private",
1300
- "privateHint": "Listed on /private instead of /meet. Anyone with the link can still book.",
1435
+ "liveLabel": "Live",
1301
1436
  "roleNote": "Only an owner or admin can manage meeting types.",
1302
- "fromProviderHeading": "From Cal.com",
1437
+ "editInProvider": "Edit in Cal.com",
1438
+ "openOnSite": "Open on site",
1439
+ "address": {
1440
+ "heading": "This appointment",
1441
+ "linkLabel": "Link",
1442
+ "linkHint": "The address visitors book at.",
1443
+ "linkPrefixHint": "Set by the site.",
1444
+ "linkFixedHint": "Booked from the account, not a page of its own.",
1445
+ "viewportDesktop": "Desktop view"
1446
+ },
1447
+ "whoCanBook": "Who can book",
1448
+ "visibility": {
1449
+ "public": "Public",
1450
+ "private": "Private",
1451
+ "authenticated": "Authenticated"
1452
+ },
1453
+ "whoHints": {
1454
+ "public": "Listed on /meet. Anyone can book.",
1455
+ "publicOff": "Listed on /meet once it is live.",
1456
+ "private": "Listed on /private, not /meet. Anyone with the link can book.",
1457
+ "authenticated": "Members only, from their account. Not listed on the site."
1458
+ },
1459
+ "createdLabel": "Created",
1460
+ "sourceLabel": "Source",
1461
+ "sourceValue": "Cal.com",
1462
+ "tabDetails": "Details",
1463
+ "tabBookings": "Bookings",
1464
+ "detailsHeading": "Details",
1465
+ "detailsCaption": "Synced from Cal.com",
1303
1466
  "durationLabel": "Duration",
1304
1467
  "priceLabel": "Price",
1305
- "linkLabel": "Link",
1306
1468
  "timeZoneLabel": "Time zone",
1469
+ "descriptionLabel": "Description",
1470
+ "locationLabel": "Location",
1471
+ "nextUpHeading": "Next up",
1472
+ "noBookings": "No upcoming bookings.",
1307
1473
  "priceFree": "Free",
1308
- "customersOnToast": "Members only: on for {title}",
1309
- "customersOffToast": "Members only: off for {title}",
1310
- "privateOnToast": "Private: on for {title}",
1311
- "privateOffToast": "Private: off for {title}",
1474
+ "liveOnToast": "{title} is on",
1475
+ "liveOffToast": "{title} is off",
1476
+ "visibilityToast": "Who can book {title}: {state}",
1312
1477
  "errorToast": "Couldn't update"
1313
1478
  }
1314
1479
  },
@@ -1477,6 +1642,7 @@
1477
1642
  "insertMagnet": "Add magnet",
1478
1643
  "insertOffer": "Add offer",
1479
1644
  "insertAsset": "Add asset",
1645
+ "insertFaq": "Add FAQ",
1480
1646
  "tips": {
1481
1647
  "h1": "Your headline is the page's one H1; sections start at H2.",
1482
1648
  "h2": "Types ## before the line → a section heading.",
@@ -1486,7 +1652,7 @@
1486
1652
  "bulletList": "Types - before each line → a bulleted list.",
1487
1653
  "numberedList": "Types 1. before each line → a numbered list.",
1488
1654
  "link": "Types [words](address) → a link.",
1489
- "insert": "A meeting, magnet, offer or image from your library. AI uses these when it lays out the page.",
1655
+ "insert": "A meeting, magnet, offer, FAQ or image from your library. AI uses these when it lays out the page.",
1490
1656
  "changes": "Compare your unsaved edits with the last save."
1491
1657
  },
1492
1658
  "issueRequired": "{field} is required.",
@@ -1525,7 +1691,9 @@
1525
1691
  "diffLegendRemoved": "Removed",
1526
1692
  "diffLegendUnchanged": "Unchanged",
1527
1693
  "bodyCodeOnly": "This page has markup only the Code view can show, so it opens in Code.",
1528
- "tagPlaceholder": "{kind}: {slug}"
1694
+ "tagPlaceholder": "{kind}: {slug}",
1695
+ "pinnedFaq": "Pinned FAQ: {question}",
1696
+ "pulledTag": "FAQs tagged {tag}"
1529
1697
  },
1530
1698
  "body": {
1531
1699
  "label": "Body",
@@ -1572,7 +1740,7 @@
1572
1740
  "unavailable": {
1573
1741
  "title": "This sign-in can't continue",
1574
1742
  "body": "The link may have expired. Go back to the site you came from and sign in again.",
1575
- "back": "Back to your account"
1743
+ "back": "Back to the site"
1576
1744
  }
1577
1745
  },
1578
1746
  "mcpConsent": {
@@ -49,7 +49,7 @@
49
49
  import { NextRequest, NextResponse } from "next/server";
50
50
  import createMiddleware from "next-intl/middleware";
51
51
 
52
- import { isBookingPath } from "./lib/auth-routes";
52
+ import { isAccountPath, isBookingPath } from "./lib/auth-routes";
53
53
  import {
54
54
  DOCS_PATH,
55
55
  DOCS_ROUTE,
@@ -65,6 +65,7 @@ import {
65
65
  } from "./lib/services-path";
66
66
  import {
67
67
  DEFAULT_SECURITY_HEADERS,
68
+ ONE_TAP_SECURITY_HEADERS,
68
69
  SCHEDULING_SECURITY_HEADERS,
69
70
  applyHeaders,
70
71
  } from "./security-headers.config";
@@ -175,6 +176,16 @@ const FILE_ROUTE_SECURITY_HEADERS: Readonly<Record<string, string>> =
175
176
  ),
176
177
  );
177
178
 
179
+ /**
180
+ * Whether this site signs in through its hub (#11096): the hub's sign-in
181
+ * origin, which only a hub-sign-in spoke sets (`lib/hub-session/config.ts`).
182
+ * Read from the environment, not `lib/topology.generated`, whose spoke render
183
+ * imports the Node-only session module this Edge bundle must not carry.
184
+ */
185
+ function signsInThroughHub(): boolean {
186
+ return (process.env.AILK_HUB_SIGN_IN_URL?.trim() ?? "") !== "";
187
+ }
188
+
178
189
  export function middleware(request: NextRequest): NextResponse {
179
190
  // Step 1: Forward x-pathname to server components so generateMetadata can
180
191
  // build path-aware hreflang alternates (P2 S1). Clone the request headers
@@ -182,6 +193,18 @@ export function middleware(request: NextRequest): NextResponse {
182
193
  // doesn't clobber the original user-facing path.
183
194
  const requestHeaders = new Headers(request.headers);
184
195
  requestHeaders.set("x-pathname", request.nextUrl.pathname);
196
+ // #11096 D1 — the (authed) gate renders from a layout, which gets no
197
+ // searchParams, so on a hub-sign-in spoke an account path's query rides
198
+ // beside the path. Always this request's own value: a client-sent
199
+ // `x-search` is dropped everywhere. It can hold a purchase claim, so no
200
+ // other path or topology carries it, and nothing logs or reports it.
201
+ requestHeaders.delete("x-search");
202
+ if (
203
+ signsInThroughHub() &&
204
+ isAccountPath(request.nextUrl.pathname, enabledLocales)
205
+ ) {
206
+ requestHeaders.set("x-search", request.nextUrl.search);
207
+ }
185
208
 
186
209
  // Non-locale routes are served as requested — no rewrite, no redirect.
187
210
  if (isNonLocaleRoute(request.nextUrl.pathname)) {
@@ -251,6 +274,8 @@ export function middleware(request: NextRequest): NextResponse {
251
274
  // pages of a site that carries the scheduling module get the same map with
252
275
  // Cal.com's origin added to the CSP (#8843 D12); no other page does. The
253
276
  // file routes get the six others and keep their own sandbox CSP (#9162).
277
+ // A hub-sign-in spoke that turned Google One Tap on (`AILK_HUB_ONE_TAP=on`)
278
+ // gets Google's origins on its other pages (#11096 D10, SEC-11096-10).
254
279
  applyHeaders(
255
280
  intlResponse.headers,
256
281
  isFileRoutePath(request.nextUrl.pathname)
@@ -258,8 +283,15 @@ export function middleware(request: NextRequest): NextResponse {
258
283
  : SCHEDULING_PAGES &&
259
284
  isBookingPath(request.nextUrl.pathname, enabledLocales)
260
285
  ? SCHEDULING_SECURITY_HEADERS
261
- : DEFAULT_SECURITY_HEADERS,
286
+ : signsInThroughHub() && process.env.AILK_HUB_ONE_TAP === "on"
287
+ ? ONE_TAP_SECURITY_HEADERS
288
+ : DEFAULT_SECURITY_HEADERS,
262
289
  );
290
+ // SEC-11096-4 — a page that carries a purchase claim in its query sends no
291
+ // referrer, so no request it makes carries the claim in `Referer`.
292
+ if (request.nextUrl.searchParams.has("claim")) {
293
+ intlResponse.headers.set("Referrer-Policy", "no-referrer");
294
+ }
263
295
  // #10040 decision 7 — a site with neither marketing nor docs-blog (a hub)
264
296
  // asks every crawler to keep out of every page, read from the module list.
265
297
  if (!PUBLIC_PAGES) intlResponse.headers.set("X-Robots-Tag", "noindex");