@@ -2,7 +2,6 @@ import { stripIndents } from 'common-tags'
22
33import { logger } from '@socketsecurity/registry/lib/logger'
44import { Separator , select } from '@socketsecurity/registry/lib/prompts'
5- import { SocketSdkReturnType } from '@socketsecurity/sdk'
65
76import constants from '../../constants'
87import { handleApiCall , handleUnsuccessfulApiResponse } from '../../utils/api'
@@ -11,6 +10,7 @@ import { mdTable } from '../../utils/markdown'
1110import { getDefaultToken , setupSdk } from '../../utils/sdk'
1211
1312import type { Choice } from '@socketsecurity/registry/lib/prompts'
13+ import type { SocketSdkReturnType } from '@socketsecurity/sdk'
1414
1515type AuditChoice = Choice < string >
1616
@@ -198,12 +198,14 @@ async function getAuditLogWithToken({
198198 const socketSdk = await setupSdk ( apiToken )
199199 const result = await handleApiCall (
200200 socketSdk . getAuditLogEvents ( orgSlug , {
201- outputJson : outputKind === 'json' , // I'm not sure this is used at all
202- outputMarkdown : outputKind === 'markdown' , // I'm not sure this is used at all
201+ // I'm not sure this is used at all.
202+ outputJson : String ( outputKind === 'json' ) ,
203+ // I'm not sure this is used at all.
204+ outputMarkdown : String ( outputKind === 'markdown' ) ,
203205 orgSlug,
204206 type : logType ,
205- page,
206- per_page : perPage
207+ page : String ( page ) ,
208+ per_page : String ( perPage )
207209 } ) ,
208210 `Looking up audit log for ${ orgSlug } \n`
209211 )
0 commit comments