audit.ts 574 B

123456789101112131415161718192021222324
  1. // @ts-ignore
  2. /* eslint-disable */
  3. import request from '@repo/api-client'
  4. /** Generate an audit Generate a security audit for your n8n instance. POST /audit */
  5. export async function postAudit(
  6. body: {
  7. additionalOptions?: {
  8. daysAbandonedWorkflow?: number
  9. categories?: ('credentials' | 'database' | 'nodes' | 'filesystem' | 'instance')[]
  10. }
  11. },
  12. options?: { [key: string]: any }
  13. ) {
  14. return request<API.audit>('/audit', {
  15. method: 'POST',
  16. headers: {
  17. 'Content-Type': 'application/json'
  18. },
  19. data: body,
  20. ...(options || {})
  21. })
  22. }