mirror of https://github.com/boxyhq/jackson.git
Add API key creation and deletion functionality
This commit is contained in:
parent
bf25eada7a
commit
ffa506c41f
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
"outDir": "dist",
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"module": "CommonJS",
|
||||
|
|
Loading…
Reference in New Issue