@lynx-seo/engine 3.3.1 → 3.3.2

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 (39) hide show
  1. package/README.md +63 -0
  2. package/dist/analytics/app-store-optimization-engine.d.ts +96 -0
  3. package/dist/analytics/behavioral-psychology-persuasion-engine.d.ts +48 -0
  4. package/dist/analytics/co-marketing-partner-scoring-engine.d.ts +58 -0
  5. package/dist/analytics/cold-email-outreach-engine.d.ts +58 -0
  6. package/dist/analytics/competitor-intelligence-radar-engine.d.ts +65 -0
  7. package/dist/analytics/customer-voice-research-voc-engine.d.ts +70 -0
  8. package/dist/analytics/directory-submissions-auditor-engine.d.ts +62 -0
  9. package/dist/analytics/earned-media-pr-pitch-engine.d.ts +56 -0
  10. package/dist/analytics/engineering-as-marketing-free-tool-engine.d.ts +67 -0
  11. package/dist/analytics/ethical-popup-overlay-engine.d.ts +59 -0
  12. package/dist/analytics/grand-slam-offer-engine.d.ts +68 -0
  13. package/dist/analytics/in-app-paywall-gate-engine.d.ts +69 -0
  14. package/dist/analytics/influencer-creator-campaign-engine.d.ts +67 -0
  15. package/dist/analytics/landing-page-hero-copy-engine.d.ts +49 -0
  16. package/dist/analytics/lead-capture-form-optimization-engine.d.ts +57 -0
  17. package/dist/analytics/lead-magnet-architecture-engine.d.ts +40 -0
  18. package/dist/analytics/product-hunt-launch-war-room-engine.d.ts +57 -0
  19. package/dist/analytics/recurring-marketing-loop-engine.d.ts +73 -0
  20. package/dist/analytics/revops-pipeline-scoring-engine.d.ts +58 -0
  21. package/dist/analytics/saas-pricing-packaging-engine.d.ts +55 -0
  22. package/dist/analytics/saas-value-metric-pricing-engine.d.ts +64 -0
  23. package/dist/analytics/server-side-tracking-capi-engine.d.ts +99 -0
  24. package/dist/analytics/signal-prospecting-qualification-engine.d.ts +54 -0
  25. package/dist/analytics/sms-marketing-compliance-engine.d.ts +62 -0
  26. package/dist/analytics/statistical-experiment-ab-testing-engine.d.ts +103 -0
  27. package/dist/analytics/subscription-churn-prevention-engine.d.ts +91 -0
  28. package/dist/analytics/user-onboarding-activation-engine.d.ts +68 -0
  29. package/dist/cro-landing-page-auditor.d.ts +3 -3
  30. package/dist/http-middleware.d.ts +121 -0
  31. package/dist/index.d.ts +39 -0
  32. package/dist/index.js +4706 -22
  33. package/dist/index.mjs +4706 -22
  34. package/dist/matrix-engine.d.ts +3 -0
  35. package/dist/mcp-seo-server.js +7 -1
  36. package/dist/plugins/two-factor-auth/index.d.ts +3 -2
  37. package/dist/sample-dataset.d.ts +15 -0
  38. package/dist/types.d.ts +3 -0
  39. package/package.json +1 -1
@@ -152,6 +152,8 @@ export interface GeneratedPageMeta {
152
152
  matrixFamily: MatrixFamily;
153
153
  urlPath: string;
154
154
  canonicalUrl: string;
155
+ url?: string;
156
+ locale?: string;
155
157
  title: string;
156
158
  description: string;
157
159
  h1: string;
@@ -444,6 +446,7 @@ export declare class PseoMatrixEngine {
444
446
  calculators?: PseoCalculator[];
445
447
  recipes?: PseoRecipe[];
446
448
  }, options: MatrixOptions): GeneratedPageMeta | undefined;
449
+ private doResolvePage;
447
450
  /**
448
451
  * Generates a fully formatted XML Sitemap string.
449
452
  */
@@ -74856,7 +74856,10 @@ class ApiKeyGuardian {
74856
74856
  maxDomains: 1,
74857
74857
  monthlyCreditBudget: 500,
74858
74858
  tokenManager: new TokenQuotaManager("starter"),
74859
- errorMessage: "Missing API Key. Please set LYNXSEO_API_KEY (or LYNXIO_API_KEY) or pass apiKey in config."
74859
+ errorMessage: `Missing API Key. LynxSeoEngine requires an active API key to resolve live pages, sync analytics and enforce quota.
74860
+
74861
+ ` + `To obtain an API key, visit https://lynxseo.com
74862
+ ` + "For offline algorithmic matrix generation without an API key, use PseoMatrixEngine directly."
74860
74863
  };
74861
74864
  }
74862
74865
  const cleanKey = apiKey.trim();
@@ -87665,8 +87668,11 @@ ${opts.description}
87665
87668
 
87666
87669
  ${whatsAppWidget}`;
87667
87670
  const cleanLlmMarkdown = LlmContentCleaner.cleanForLlm(rawMarkdown);
87671
+ const cleanPath = opts.path.startsWith("/") ? opts.path : `/${opts.path}`;
87668
87672
  return {
87669
87673
  url: opts.url,
87674
+ urlPath: cleanPath,
87675
+ canonicalUrl: opts.url,
87670
87676
  title: opts.title,
87671
87677
  description: opts.description,
87672
87678
  h1: opts.h1,
@@ -31,7 +31,7 @@ export declare class TwoFactorAuthPlugin implements LynxSeoPlugin {
31
31
  */
32
32
  generateSecret(userId: string): TOTPSecret;
33
33
  /**
34
- * Vérifie un code TOTP (implémentation simplifiée — production utiliserait otplib).
34
+ * Vérifie un code TOTP RFC 6238.
35
35
  */
36
36
  verifyTOTP(userId: string, token: string): boolean;
37
37
  /**
@@ -53,7 +53,8 @@ export declare class TwoFactorAuthPlugin implements LynxSeoPlugin {
53
53
  private recordAttempt;
54
54
  private generateBase32Secret;
55
55
  private generateBackupCode;
56
- private mockVerifyTOTP;
56
+ private verifyTotpCode;
57
+ private decodeBase32Secret;
57
58
  disable(): Promise<void>;
58
59
  }
59
60
  export default TwoFactorAuthPlugin;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 📦 Ready-to-use Sample Datasets for Dev Exploration & Onboarding
3
+ *
4
+ * Developers can import this dataset to test matrix generation, schemas, and routing
5
+ * in 2 lines of code without needing an API key or setting up a database.
6
+ */
7
+ import type { PseoService, PseoLocation } from "./matrix-engine";
8
+ export interface SamplePseoDataset {
9
+ services: PseoService[];
10
+ locations: PseoLocation[];
11
+ }
12
+ /**
13
+ * Complete, ready-to-use dataset across Services and Locations for offline testing with PseoMatrixEngine.
14
+ */
15
+ export declare const samplePseoDataset: SamplePseoDataset;
package/dist/types.d.ts CHANGED
@@ -63,6 +63,9 @@ export interface LynxSeoConfig {
63
63
  }
64
64
  export interface LynxResolvedPage {
65
65
  url: string;
66
+ urlPath?: string;
67
+ canonicalUrl?: string;
68
+ matrixFamily?: string;
66
69
  title: string;
67
70
  description: string;
68
71
  h1: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-seo/engine",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "High-Performance Universal Programmatic SEO & AI Search Engine SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",