Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick: etier2c

Nicolas96c579f1cd3b
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 0736ecd84..20c4a60a1 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -358,6 +358,8 @@ function getPlanByPriceId(price_id: string): PlanType {
return "growth";
case process.env.STRIPE_PRICE_ID_GROWTH_DOUBLE_MONTHLY:
return "growthdouble";
+ case process.env.STRIPE_PRICE_ID_ETIER2C:
+ return "etier2c";
default:
return "free";
}
diff --git a/apps/api/src/lib/job-priority.ts b/apps/api/src/lib/job-priority.ts
index 83fefcec3..6108e131d 100644
--- a/apps/api/src/lib/job-priority.ts
+++ b/apps/api/src/lib/job-priority.ts
@@ -70,6 +70,10 @@ export async function getJobPriority({
bucketLimit = 400;
planModifier = 0.1;
break;
+ case "etier2c":
+ bucketLimit = 1000;
+ planModifier = 0.05;
+ break;
default:
bucketLimit = 25;
diff --git a/apps/api/src/services/rate-limiter.ts b/apps/api/src/services/rate-limiter.ts
index ef3d78f8c..480db9f32 100644
--- a/apps/api/src/services/rate-limiter.ts
+++ b/apps/api/src/services/rate-limiter.ts
@@ -15,6 +15,7 @@ const RATE_LIMITS = {
standardnew: 10,
growth: 50,
growthdouble: 50,
+ etier2c: 300,
},
scrape: {
default: 20,
@@ -28,6 +29,7 @@ const RATE_LIMITS = {
standardnew: 100,
growth: 1000,
growthdouble: 1000,
+ etier2c: 2500,
},
search: {
default: 20,
@@ -41,6 +43,7 @@ const RATE_LIMITS = {
standardnew: 50,
growth: 500,
growthdouble: 500,
+ etier2c: 2500,
},
map:{
default: 20,
@@ -54,6 +57,7 @@ const RATE_LIMITS = {
standardnew: 50,
growth: 500,
growthdouble: 500,
+ etier2c: 2500,
},
preview: {
free: 5,
diff --git a/apps/api/src/types.ts b/apps/api/src/types.ts
index bd11667b1..216786d9e 100644
--- a/apps/api/src/types.ts
+++ b/apps/api/src/types.ts
@@ -157,6 +157,7 @@ export type PlanType =
| "standardnew"
| "growth"
| "growthdouble"
+ | "etier2c"
| "free"
| "";