@@ -10,15 +10,15 @@ import { msAtHome } from '../../utils/ms-at-home.mts'
1010import { serializeResultJson } from '../../utils/serialize-result-json.mts'
1111
1212import type { CResult , OutputKind } from '../../types.mts'
13- import type { SocketSdkReturnType } from '@socketsecurity/sdk'
13+ import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
1414import type { Widgets } from 'blessed'
1515
1616const require = createRequire ( import . meta. url )
1717
1818const { REDACTED } = constants
1919
2020export async function outputAuditLog (
21- result : CResult < SocketSdkReturnType < 'getAuditLogEvents' > [ 'data' ] > ,
21+ result : CResult < SocketSdkSuccessResult < 'getAuditLogEvents' > [ 'data' ] > ,
2222 {
2323 logType,
2424 orgSlug,
@@ -69,7 +69,7 @@ export async function outputAuditLog(
6969}
7070
7171function formatResult (
72- selectedRow ?: SocketSdkReturnType < 'getAuditLogEvents' > [ 'data' ] [ 'results' ] [ number ] ,
72+ selectedRow ?: SocketSdkSuccessResult < 'getAuditLogEvents' > [ 'data' ] [ 'results' ] [ number ] ,
7373 keepQuotes = false ,
7474) : string {
7575 if ( ! selectedRow ) {
@@ -89,7 +89,7 @@ function formatResult(
8989}
9090
9191export async function outputAsJson (
92- auditLogs : CResult < SocketSdkReturnType < 'getAuditLogEvents' > [ 'data' ] > ,
92+ auditLogs : CResult < SocketSdkSuccessResult < 'getAuditLogEvents' > [ 'data' ] > ,
9393 {
9494 logType,
9595 orgSlug,
@@ -141,7 +141,7 @@ export async function outputAsJson(
141141}
142142
143143export async function outputAsMarkdown (
144- auditLogs : SocketSdkReturnType < 'getAuditLogEvents' > [ 'data' ] ,
144+ auditLogs : SocketSdkSuccessResult < 'getAuditLogEvents' > [ 'data' ] ,
145145 {
146146 logType,
147147 orgSlug,
@@ -189,7 +189,7 @@ ${table}
189189}
190190
191191async function outputWithBlessed (
192- data : SocketSdkReturnType < 'getAuditLogEvents' > [ 'data' ] ,
192+ data : SocketSdkSuccessResult < 'getAuditLogEvents' > [ 'data' ] ,
193193 orgSlug : string ,
194194) {
195195 const filteredLogs = data . results
0 commit comments