feat: add ratelimit model support in API and data model definitions, enhancing rate limiting functionality
This commit is contained in:
116
packages/backend/convex/_generated/api.d.ts
vendored
116
packages/backend/convex/_generated/api.d.ts
vendored
@@ -352,6 +352,10 @@ export declare const components: {
|
||||
lastRequest?: null | number;
|
||||
};
|
||||
model: "rateLimit";
|
||||
}
|
||||
| {
|
||||
data: { count: number; key: string; lastRequest: number };
|
||||
model: "ratelimit";
|
||||
};
|
||||
onCreateHandle?: string;
|
||||
select?: Array<string>;
|
||||
@@ -729,6 +733,32 @@ export declare const components: {
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
}
|
||||
| {
|
||||
model: "ratelimit";
|
||||
where?: Array<{
|
||||
connector?: "AND" | "OR";
|
||||
field: "key" | "count" | "lastRequest" | "_id";
|
||||
operator?:
|
||||
| "lt"
|
||||
| "lte"
|
||||
| "gt"
|
||||
| "gte"
|
||||
| "eq"
|
||||
| "in"
|
||||
| "not_in"
|
||||
| "ne"
|
||||
| "contains"
|
||||
| "starts_with"
|
||||
| "ends_with";
|
||||
value:
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| Array<string>
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
};
|
||||
onDeleteHandle?: string;
|
||||
paginationOpts: {
|
||||
@@ -1113,6 +1143,32 @@ export declare const components: {
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
}
|
||||
| {
|
||||
model: "ratelimit";
|
||||
where?: Array<{
|
||||
connector?: "AND" | "OR";
|
||||
field: "key" | "count" | "lastRequest" | "_id";
|
||||
operator?:
|
||||
| "lt"
|
||||
| "lte"
|
||||
| "gt"
|
||||
| "gte"
|
||||
| "eq"
|
||||
| "in"
|
||||
| "not_in"
|
||||
| "ne"
|
||||
| "contains"
|
||||
| "starts_with"
|
||||
| "ends_with";
|
||||
value:
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| Array<string>
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
};
|
||||
onDeleteHandle?: string;
|
||||
},
|
||||
@@ -1134,7 +1190,8 @@ export declare const components: {
|
||||
| "oauthAccessToken"
|
||||
| "oauthConsent"
|
||||
| "jwks"
|
||||
| "rateLimit";
|
||||
| "rateLimit"
|
||||
| "ratelimit";
|
||||
offset?: number;
|
||||
paginationOpts: {
|
||||
cursor: string | null;
|
||||
@@ -1186,7 +1243,8 @@ export declare const components: {
|
||||
| "oauthAccessToken"
|
||||
| "oauthConsent"
|
||||
| "jwks"
|
||||
| "rateLimit";
|
||||
| "rateLimit"
|
||||
| "ratelimit";
|
||||
select?: Array<string>;
|
||||
where?: Array<{
|
||||
connector?: "AND" | "OR";
|
||||
@@ -1695,6 +1753,33 @@ export declare const components: {
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
}
|
||||
| {
|
||||
model: "ratelimit";
|
||||
update: { count?: number; key?: string; lastRequest?: number };
|
||||
where?: Array<{
|
||||
connector?: "AND" | "OR";
|
||||
field: "key" | "count" | "lastRequest" | "_id";
|
||||
operator?:
|
||||
| "lt"
|
||||
| "lte"
|
||||
| "gt"
|
||||
| "gte"
|
||||
| "eq"
|
||||
| "in"
|
||||
| "not_in"
|
||||
| "ne"
|
||||
| "contains"
|
||||
| "starts_with"
|
||||
| "ends_with";
|
||||
value:
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| Array<string>
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
};
|
||||
onUpdateHandle?: string;
|
||||
paginationOpts: {
|
||||
@@ -2183,6 +2268,33 @@ export declare const components: {
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
}
|
||||
| {
|
||||
model: "ratelimit";
|
||||
update: { count?: number; key?: string; lastRequest?: number };
|
||||
where?: Array<{
|
||||
connector?: "AND" | "OR";
|
||||
field: "key" | "count" | "lastRequest" | "_id";
|
||||
operator?:
|
||||
| "lt"
|
||||
| "lte"
|
||||
| "gt"
|
||||
| "gte"
|
||||
| "eq"
|
||||
| "in"
|
||||
| "not_in"
|
||||
| "ne"
|
||||
| "contains"
|
||||
| "starts_with"
|
||||
| "ends_with";
|
||||
value:
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| Array<string>
|
||||
| Array<number>
|
||||
| null;
|
||||
}>;
|
||||
};
|
||||
onUpdateHandle?: string;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user