@@ -2,7 +2,6 @@ import { stripIndents } from 'common-tags'
2
2
3
3
import { logger } from '@socketsecurity/registry/lib/logger'
4
4
import { Separator , select } from '@socketsecurity/registry/lib/prompts'
5
- import { SocketSdkReturnType } from '@socketsecurity/sdk'
6
5
7
6
import constants from '../../constants'
8
7
import { handleApiCall , handleUnsuccessfulApiResponse } from '../../utils/api'
@@ -11,6 +10,7 @@ import { mdTable } from '../../utils/markdown'
11
10
import { getDefaultToken , setupSdk } from '../../utils/sdk'
12
11
13
12
import type { Choice } from '@socketsecurity/registry/lib/prompts'
13
+ import type { SocketSdkReturnType } from '@socketsecurity/sdk'
14
14
15
15
type AuditChoice = Choice < string >
16
16
@@ -198,12 +198,14 @@ async function getAuditLogWithToken({
198
198
const socketSdk = await setupSdk ( apiToken )
199
199
const result = await handleApiCall (
200
200
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' ) ,
203
205
orgSlug,
204
206
type : logType ,
205
- page,
206
- per_page : perPage
207
+ page : String ( page ) ,
208
+ per_page : String ( perPage )
207
209
} ) ,
208
210
`Looking up audit log for ${ orgSlug } \n`
209
211
)
0 commit comments