@retrivora-ai/rag-engine 2.0.3 → 2.0.4

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.
@@ -8856,7 +8856,7 @@ var LicenseVerifier = class {
8856
8856
  `The database provider "${provider}" is not allowed on the Hobby tier. Hobby tier is restricted to PostgreSQL and Supabase. Please upgrade to a Developer Pro or Enterprise plan.`
8857
8857
  );
8858
8858
  }
8859
- } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth") {
8859
+ } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth" || tier === "free_trial" || tier === "free_tier" || tier === "free") {
8860
8860
  const allowedPro = [
8861
8861
  "postgresql",
8862
8862
  "pgvector",
@@ -9229,7 +9229,7 @@ var DatabaseStorage = class {
9229
9229
  try {
9230
9230
  const payload = LicenseVerifier.verify(this.config.licenseKey, this.config.projectId);
9231
9231
  const tier = (payload.tier || "").toLowerCase();
9232
- if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro") {
9232
+ if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro" && tier !== "free_trial" && tier !== "free_tier" && tier !== "free" && tier !== "hobby") {
9233
9233
  throw new Error(
9234
9234
  `[Retrivora SDK] Chat History and Feedback features are not available on the "${tier}" tier. Please upgrade to a Developer Pro or Enterprise plan.`
9235
9235
  );
@@ -8821,7 +8821,7 @@ var LicenseVerifier = class {
8821
8821
  `The database provider "${provider}" is not allowed on the Hobby tier. Hobby tier is restricted to PostgreSQL and Supabase. Please upgrade to a Developer Pro or Enterprise plan.`
8822
8822
  );
8823
8823
  }
8824
- } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth") {
8824
+ } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth" || tier === "free_trial" || tier === "free_tier" || tier === "free") {
8825
8825
  const allowedPro = [
8826
8826
  "postgresql",
8827
8827
  "pgvector",
@@ -9194,7 +9194,7 @@ var DatabaseStorage = class {
9194
9194
  try {
9195
9195
  const payload = LicenseVerifier.verify(this.config.licenseKey, this.config.projectId);
9196
9196
  const tier = (payload.tier || "").toLowerCase();
9197
- if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro") {
9197
+ if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro" && tier !== "free_trial" && tier !== "free_tier" && tier !== "free" && tier !== "hobby") {
9198
9198
  throw new Error(
9199
9199
  `[Retrivora SDK] Chat History and Feedback features are not available on the "${tier}" tier. Please upgrade to a Developer Pro or Enterprise plan.`
9200
9200
  );
package/dist/server.js CHANGED
@@ -4428,7 +4428,7 @@ var LicenseVerifier = class {
4428
4428
  `The database provider "${provider}" is not allowed on the Hobby tier. Hobby tier is restricted to PostgreSQL and Supabase. Please upgrade to a Developer Pro or Enterprise plan.`
4429
4429
  );
4430
4430
  }
4431
- } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth") {
4431
+ } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth" || tier === "free_trial" || tier === "free_tier" || tier === "free") {
4432
4432
  const allowedPro = [
4433
4433
  "postgresql",
4434
4434
  "pgvector",
@@ -9642,7 +9642,7 @@ var DatabaseStorage = class {
9642
9642
  try {
9643
9643
  const payload = LicenseVerifier.verify(this.config.licenseKey, this.config.projectId);
9644
9644
  const tier = (payload.tier || "").toLowerCase();
9645
- if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro") {
9645
+ if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro" && tier !== "free_trial" && tier !== "free_tier" && tier !== "free" && tier !== "hobby") {
9646
9646
  throw new Error(
9647
9647
  `[Retrivora SDK] Chat History and Feedback features are not available on the "${tier}" tier. Please upgrade to a Developer Pro or Enterprise plan.`
9648
9648
  );
package/dist/server.mjs CHANGED
@@ -4332,7 +4332,7 @@ var LicenseVerifier = class {
4332
4332
  `The database provider "${provider}" is not allowed on the Hobby tier. Hobby tier is restricted to PostgreSQL and Supabase. Please upgrade to a Developer Pro or Enterprise plan.`
4333
4333
  );
4334
4334
  }
4335
- } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth") {
4335
+ } else if (tier === "pro" || tier === "developer_pro" || tier === "premium" || tier === "growth" || tier === "free_trial" || tier === "free_tier" || tier === "free") {
4336
4336
  const allowedPro = [
4337
4337
  "postgresql",
4338
4338
  "pgvector",
@@ -9546,7 +9546,7 @@ var DatabaseStorage = class {
9546
9546
  try {
9547
9547
  const payload = LicenseVerifier.verify(this.config.licenseKey, this.config.projectId);
9548
9548
  const tier = (payload.tier || "").toLowerCase();
9549
- if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro") {
9549
+ if (tier !== "premium" && tier !== "enterprise" && tier !== "growth" && tier !== "pro" && tier !== "developer_pro" && tier !== "free_trial" && tier !== "free_tier" && tier !== "free" && tier !== "hobby") {
9550
9550
  throw new Error(
9551
9551
  `[Retrivora SDK] Chat History and Feedback features are not available on the "${tier}" tier. Please upgrade to a Developer Pro or Enterprise plan.`
9552
9552
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retrivora-ai/rag-engine",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Retrivora AI is a plug-and-play AI engine for RAG chat experiences — generic vector DB + LLM provider, embeddable or standalone.",
5
5
  "author": "Abhinav Alkuchi",
6
6
  "license": "UNLICENSED",
@@ -76,7 +76,11 @@ export class DatabaseStorage {
76
76
  tier !== 'enterprise' &&
77
77
  tier !== 'growth' &&
78
78
  tier !== 'pro' &&
79
- tier !== 'developer_pro'
79
+ tier !== 'developer_pro' &&
80
+ tier !== 'free_trial' &&
81
+ tier !== 'free_tier' &&
82
+ tier !== 'free' &&
83
+ tier !== 'hobby'
80
84
  ) {
81
85
  throw new Error(
82
86
  `[Retrivora SDK] Chat History and Feedback features are not available on the "${tier}" tier. ` +
@@ -149,7 +149,7 @@ MwIDAQAB
149
149
  `Please upgrade to a Developer Pro or Enterprise plan.`
150
150
  );
151
151
  }
152
- } else if (tier === 'pro' || tier === 'developer_pro' || tier === 'premium' || tier === 'growth') {
152
+ } else if (tier === 'pro' || tier === 'developer_pro' || tier === 'premium' || tier === 'growth' || tier === 'free_trial' || tier === 'free_tier' || tier === 'free') {
153
153
  // Developer Pro supports: PostgreSQL, Pinecone, Qdrant, MongoDB, Milvus, ChromaDB
154
154
  const allowedPro = [
155
155
  'postgresql', 'pgvector', 'supabase',