Add API key creation and deletion functionality

This commit is contained in:
ukrocks007 2024-04-01 16:13:28 +05:30
parent bf25eada7a
commit ffa506c41f
5 changed files with 9 additions and 6 deletions

View File

@ -66,7 +66,9 @@ type AuditEventType =
| 'team.delete'
| 'audit_log.splunk_connection.create'
| 'audit_log.splunk_connection.delete'
| 'audit_log.splunk_connection.update';
| 'audit_log.splunk_connection.update'
| 'api_key.create'
| 'api_key.delete';
interface ReportAdminEventParams {
action: AuditEventType;

View File

@ -24,6 +24,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
// Get Security Logs config by id
const handlePOST = async (req: NextApiRequest, res: NextApiResponse) => {
const { action, crud, actor, sourceIp, group, target, productId } = req.body;
await retraced.reportEvent({
action: action,
crud: crud,

View File

@ -5,7 +5,7 @@
VERSION=0.0.0
# Unpublish the current version
npm unpublish --registry http://localhost:4873/ @boxyhq/security-sinks@$VERSION
npm unpublish --registry http://localhost:4873/ @boxyhq/security-sinks@$VERSION --force
# Build the package
rm -rf dist

View File

@ -9,10 +9,10 @@
},
"repository": {
"type": "git",
"url": "https://github.com/boxyhq/jackson.git"
"url": "git+https://github.com/boxyhq/jackson.git"
},
"main": "src/index.ts",
"types": "src/index.ts",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"ENTERPRISE.md",

View File

@ -1,7 +1,7 @@
{
"compilerOptions": {
"sourceMap": true,
"outDir": "./dist",
"outDir": "dist",
"allowJs": true,
"skipLibCheck": true,
"module": "CommonJS",