feat: enhance cybersecurity features and add ticket management components
- Introduced new components for managing tickets, including TicketForm, TicketCard, and TicketTimeline, to streamline the ticketing process. - Added a new SlaChart component for visualizing SLA data. - Implemented a CybersecurityWizcard component for enhanced security monitoring and reporting. - Updated routing to replace the "Solicitar Acesso" page with "Abrir Chamado" for improved user navigation. - Integrated rate limiting functionality to enhance security measures. - Added a comprehensive test report for the cybersecurity system, detailing various attack simulations and their outcomes. - Included new scripts for security testing and environment setup to facilitate automated security assessments.
This commit is contained in:
140
packages/backend/convex/_generated/api.d.ts
vendored
140
packages/backend/convex/_generated/api.d.ts
vendored
@@ -16,6 +16,7 @@ import type * as actions_utils_nodeCrypto from "../actions/utils/nodeCrypto.js";
|
||||
import type * as atestadosLicencas from "../atestadosLicencas.js";
|
||||
import type * as ausencias from "../ausencias.js";
|
||||
import type * as auth_utils from "../auth/utils.js";
|
||||
import type * as chamados from "../chamados.js";
|
||||
import type * as auth from "../auth.js";
|
||||
import type * as chat from "../chat.js";
|
||||
import type * as configuracaoEmail from "../configuracaoEmail.js";
|
||||
@@ -29,7 +30,6 @@ import type * as ferias from "../ferias.js";
|
||||
import type * as funcionarios from "../funcionarios.js";
|
||||
import type * as healthCheck from "../healthCheck.js";
|
||||
import type * as http from "../http.js";
|
||||
import type * as limparPerfisAntigos from "../limparPerfisAntigos.js";
|
||||
import type * as logsAcesso from "../logsAcesso.js";
|
||||
import type * as logsAtividades from "../logsAtividades.js";
|
||||
import type * as logsLogin from "../logsLogin.js";
|
||||
@@ -39,6 +39,7 @@ import type * as preferenciasNotificacao from "../preferenciasNotificacao.js";
|
||||
import type * as pushNotifications from "../pushNotifications.js";
|
||||
import type * as roles from "../roles.js";
|
||||
import type * as saldoFerias from "../saldoFerias.js";
|
||||
import type * as security from "../security.js";
|
||||
import type * as seed from "../seed.js";
|
||||
import type * as simbolos from "../simbolos.js";
|
||||
import type * as solicitacoesAcesso from "../solicitacoesAcesso.js";
|
||||
@@ -72,6 +73,7 @@ declare const fullApi: ApiFromModules<{
|
||||
atestadosLicencas: typeof atestadosLicencas;
|
||||
ausencias: typeof ausencias;
|
||||
"auth/utils": typeof auth_utils;
|
||||
chamados: typeof chamados;
|
||||
auth: typeof auth;
|
||||
chat: typeof chat;
|
||||
configuracaoEmail: typeof configuracaoEmail;
|
||||
@@ -85,7 +87,6 @@ declare const fullApi: ApiFromModules<{
|
||||
funcionarios: typeof funcionarios;
|
||||
healthCheck: typeof healthCheck;
|
||||
http: typeof http;
|
||||
limparPerfisAntigos: typeof limparPerfisAntigos;
|
||||
logsAcesso: typeof logsAcesso;
|
||||
logsAtividades: typeof logsAtividades;
|
||||
logsLogin: typeof logsLogin;
|
||||
@@ -95,6 +96,7 @@ declare const fullApi: ApiFromModules<{
|
||||
pushNotifications: typeof pushNotifications;
|
||||
roles: typeof roles;
|
||||
saldoFerias: typeof saldoFerias;
|
||||
security: typeof security;
|
||||
seed: typeof seed;
|
||||
simbolos: typeof simbolos;
|
||||
solicitacoesAcesso: typeof solicitacoesAcesso;
|
||||
@@ -2216,4 +2218,138 @@ export declare const components: {
|
||||
updateMany: FunctionReference<"mutation", "internal", any, any>;
|
||||
};
|
||||
};
|
||||
rateLimiter: {
|
||||
lib: {
|
||||
checkRateLimit: FunctionReference<
|
||||
"query",
|
||||
"internal",
|
||||
{
|
||||
config:
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "token bucket";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: null;
|
||||
}
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "fixed window";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: number;
|
||||
};
|
||||
count?: number;
|
||||
key?: string;
|
||||
name: string;
|
||||
reserve?: boolean;
|
||||
throws?: boolean;
|
||||
},
|
||||
{ ok: true; retryAfter?: number } | { ok: false; retryAfter: number }
|
||||
>;
|
||||
clearAll: FunctionReference<
|
||||
"mutation",
|
||||
"internal",
|
||||
{ before?: number },
|
||||
null
|
||||
>;
|
||||
getServerTime: FunctionReference<"mutation", "internal", {}, number>;
|
||||
getValue: FunctionReference<
|
||||
"query",
|
||||
"internal",
|
||||
{
|
||||
config:
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "token bucket";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: null;
|
||||
}
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "fixed window";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: number;
|
||||
};
|
||||
key?: string;
|
||||
name: string;
|
||||
sampleShards?: number;
|
||||
},
|
||||
{
|
||||
config:
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "token bucket";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: null;
|
||||
}
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "fixed window";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: number;
|
||||
};
|
||||
shard: number;
|
||||
ts: number;
|
||||
value: number;
|
||||
}
|
||||
>;
|
||||
rateLimit: FunctionReference<
|
||||
"mutation",
|
||||
"internal",
|
||||
{
|
||||
config:
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "token bucket";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: null;
|
||||
}
|
||||
| {
|
||||
capacity?: number;
|
||||
kind: "fixed window";
|
||||
maxReserved?: number;
|
||||
period: number;
|
||||
rate: number;
|
||||
shards?: number;
|
||||
start?: number;
|
||||
};
|
||||
count?: number;
|
||||
key?: string;
|
||||
name: string;
|
||||
reserve?: boolean;
|
||||
throws?: boolean;
|
||||
},
|
||||
{ ok: true; retryAfter?: number } | { ok: false; retryAfter: number }
|
||||
>;
|
||||
resetRateLimit: FunctionReference<
|
||||
"mutation",
|
||||
"internal",
|
||||
{ key?: string; name: string },
|
||||
null
|
||||
>;
|
||||
};
|
||||
time: {
|
||||
getServerTime: FunctionReference<"mutation", "internal", {}, number>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user