Skip to main content

Class: ScanLogsClient

Defined in: src/management/scan-logs.ts:30

Client for retrieving scan logs.

Constructors

Constructor

new ScanLogsClient(opts): ScanLogsClient;

Defined in: src/management/scan-logs.ts:35

Parameters

ParameterType
optsScanLogsClientOptions

Returns

ScanLogsClient

Methods

query()

query(opts): Promise<objectOutputType<{
scan_result_for_dashboard: ZodOptional<ZodObject<{
text_records_count: ZodOptional<ZodNumber>;
api_calls_count: ZodOptional<ZodNumber>;
threats_count: ZodOptional<ZodNumber>;
all_transactions_count: ZodOptional<ZodNumber>;
benign_transaction_count: ZodOptional<ZodNumber>;
scan_result_entries: ZodOptional<ZodArray<ZodObject<{
csp_id: ZodString;
tsg_id: ZodString;
scan_id: ZodString;
scan_sub_req_id: ZodNumber;
api_key_name: ZodString;
app_name: ZodString;
tokens: ZodNumber;
text_records: ZodNumber;
transaction_id: ZodOptional<...>;
profile_id: ZodOptional<...>;
profile_name: ZodOptional<...>;
model_name: ZodOptional<...>;
user: ZodOptional<...>;
environment: ZodOptional<...>;
cloud_provider: ZodOptional<...>;
agent_framework: ZodOptional<...>;
report_id: ZodOptional<...>;
received_ts: ZodOptional<...>;
completed_ts: ZodOptional<...>;
status: ZodOptional<...>;
verdict: ZodOptional<...>;
action: ZodOptional<...>;
is_prompt: ZodOptional<...>;
is_response: ZodOptional<...>;
pi_final_verdict: ZodOptional<...>;
uf_final_verdict: ZodOptional<...>;
dlp_final_verdict: ZodOptional<...>;
dbs_final_verdict: ZodOptional<...>;
tc_final_verdict: ZodOptional<...>;
mc_final_verdict: ZodOptional<...>;
agent_final_verdict: ZodOptional<...>;
cg_final_verdict: ZodOptional<...>;
tg_final_verdict: ZodOptional<...>;
prompt_pi_verdict: ZodOptional<...>;
prompt_uf_verdict: ZodOptional<...>;
prompt_dlp_verdict: ZodOptional<...>;
prompt_tc_verdict: ZodOptional<...>;
prompt_mc_verdict: ZodOptional<...>;
prompt_agent_verdict: ZodOptional<...>;
prompt_tg_verdict: ZodOptional<...>;
prompt_verdict: ZodOptional<...>;
prompt_pi_action: ZodOptional<...>;
prompt_uf_action: ZodOptional<...>;
prompt_dlp_action: ZodOptional<...>;
prompt_tc_action: ZodOptional<...>;
prompt_mc_action: ZodOptional<...>;
prompt_agent_action: ZodOptional<...>;
prompt_tg_action: ZodOptional<...>;
response_uf_verdict: ZodOptional<...>;
response_dlp_verdict: ZodOptional<...>;
response_dbs_verdict: ZodOptional<...>;
response_tc_verdict: ZodOptional<...>;
response_mc_verdict: ZodOptional<...>;
response_agent_verdict: ZodOptional<...>;
response_cg_verdict: ZodOptional<...>;
response_tg_verdict: ZodOptional<...>;
response_uf_action: ZodOptional<...>;
response_dlp_action: ZodOptional<...>;
response_dbs_action: ZodOptional<...>;
response_tc_action: ZodOptional<...>;
response_mc_action: ZodOptional<...>;
response_agent_action: ZodOptional<...>;
response_cg_action: ZodOptional<...>;
response_tg_action: ZodOptional<...>;
response_verdict: ZodOptional<...>;
detection_service_flags: ZodOptional<...>;
content_masked: ZodOptional<...>;
user_ip: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
csp_id: ...;
tsg_id: ...;
scan_id: ...;
scan_sub_req_id: ...;
api_key_name: ...;
app_name: ...;
tokens: ...;
text_records: ...;
transaction_id: ...;
profile_id: ...;
profile_name: ...;
model_name: ...;
user: ...;
environment: ...;
cloud_provider: ...;
agent_framework: ...;
report_id: ...;
received_ts: ...;
completed_ts: ...;
status: ...;
verdict: ...;
action: ...;
is_prompt: ...;
is_response: ...;
pi_final_verdict: ...;
uf_final_verdict: ...;
dlp_final_verdict: ...;
dbs_final_verdict: ...;
tc_final_verdict: ...;
mc_final_verdict: ...;
agent_final_verdict: ...;
cg_final_verdict: ...;
tg_final_verdict: ...;
prompt_pi_verdict: ...;
prompt_uf_verdict: ...;
prompt_dlp_verdict: ...;
prompt_tc_verdict: ...;
prompt_mc_verdict: ...;
prompt_agent_verdict: ...;
prompt_tg_verdict: ...;
prompt_verdict: ...;
prompt_pi_action: ...;
prompt_uf_action: ...;
prompt_dlp_action: ...;
prompt_tc_action: ...;
prompt_mc_action: ...;
prompt_agent_action: ...;
prompt_tg_action: ...;
response_uf_verdict: ...;
response_dlp_verdict: ...;
response_dbs_verdict: ...;
response_tc_verdict: ...;
response_mc_verdict: ...;
response_agent_verdict: ...;
response_cg_verdict: ...;
response_tg_verdict: ...;
response_uf_action: ...;
response_dlp_action: ...;
response_dbs_action: ...;
response_tc_action: ...;
response_mc_action: ...;
response_agent_action: ...;
response_cg_action: ...;
response_tg_action: ...;
response_verdict: ...;
detection_service_flags: ...;
content_masked: ...;
user_ip: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
csp_id: ...;
tsg_id: ...;
scan_id: ...;
scan_sub_req_id: ...;
api_key_name: ...;
app_name: ...;
tokens: ...;
text_records: ...;
transaction_id: ...;
profile_id: ...;
profile_name: ...;
model_name: ...;
user: ...;
environment: ...;
cloud_provider: ...;
agent_framework: ...;
report_id: ...;
received_ts: ...;
completed_ts: ...;
status: ...;
verdict: ...;
action: ...;
is_prompt: ...;
is_response: ...;
pi_final_verdict: ...;
uf_final_verdict: ...;
dlp_final_verdict: ...;
dbs_final_verdict: ...;
tc_final_verdict: ...;
mc_final_verdict: ...;
agent_final_verdict: ...;
cg_final_verdict: ...;
tg_final_verdict: ...;
prompt_pi_verdict: ...;
prompt_uf_verdict: ...;
prompt_dlp_verdict: ...;
prompt_tc_verdict: ...;
prompt_mc_verdict: ...;
prompt_agent_verdict: ...;
prompt_tg_verdict: ...;
prompt_verdict: ...;
prompt_pi_action: ...;
prompt_uf_action: ...;
prompt_dlp_action: ...;
prompt_tc_action: ...;
prompt_mc_action: ...;
prompt_agent_action: ...;
prompt_tg_action: ...;
response_uf_verdict: ...;
response_dlp_verdict: ...;
response_dbs_verdict: ...;
response_tc_verdict: ...;
response_mc_verdict: ...;
response_agent_verdict: ...;
response_cg_verdict: ...;
response_tg_verdict: ...;
response_uf_action: ...;
response_dlp_action: ...;
response_dbs_action: ...;
response_tc_action: ...;
response_mc_action: ...;
response_agent_action: ...;
response_cg_action: ...;
response_tg_action: ...;
response_verdict: ...;
detection_service_flags: ...;
content_masked: ...;
user_ip: ...;
}, ZodTypeAny, "passthrough">>, "many">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
text_records_count: ZodOptional<ZodNumber>;
api_calls_count: ZodOptional<ZodNumber>;
threats_count: ZodOptional<ZodNumber>;
all_transactions_count: ZodOptional<ZodNumber>;
benign_transaction_count: ZodOptional<ZodNumber>;
scan_result_entries: ZodOptional<ZodArray<ZodObject<{
csp_id: ...;
tsg_id: ...;
scan_id: ...;
scan_sub_req_id: ...;
api_key_name: ...;
app_name: ...;
tokens: ...;
text_records: ...;
transaction_id: ...;
profile_id: ...;
profile_name: ...;
model_name: ...;
user: ...;
environment: ...;
cloud_provider: ...;
agent_framework: ...;
report_id: ...;
received_ts: ...;
completed_ts: ...;
status: ...;
verdict: ...;
action: ...;
is_prompt: ...;
is_response: ...;
pi_final_verdict: ...;
uf_final_verdict: ...;
dlp_final_verdict: ...;
dbs_final_verdict: ...;
tc_final_verdict: ...;
mc_final_verdict: ...;
agent_final_verdict: ...;
cg_final_verdict: ...;
tg_final_verdict: ...;
prompt_pi_verdict: ...;
prompt_uf_verdict: ...;
prompt_dlp_verdict: ...;
prompt_tc_verdict: ...;
prompt_mc_verdict: ...;
prompt_agent_verdict: ...;
prompt_tg_verdict: ...;
prompt_verdict: ...;
prompt_pi_action: ...;
prompt_uf_action: ...;
prompt_dlp_action: ...;
prompt_tc_action: ...;
prompt_mc_action: ...;
prompt_agent_action: ...;
prompt_tg_action: ...;
response_uf_verdict: ...;
response_dlp_verdict: ...;
response_dbs_verdict: ...;
response_tc_verdict: ...;
response_mc_verdict: ...;
response_agent_verdict: ...;
response_cg_verdict: ...;
response_tg_verdict: ...;
response_uf_action: ...;
response_dlp_action: ...;
response_dbs_action: ...;
response_tc_action: ...;
response_mc_action: ...;
response_agent_action: ...;
response_cg_action: ...;
response_tg_action: ...;
response_verdict: ...;
detection_service_flags: ...;
content_masked: ...;
user_ip: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
text_records_count: ZodOptional<ZodNumber>;
api_calls_count: ZodOptional<ZodNumber>;
threats_count: ZodOptional<ZodNumber>;
all_transactions_count: ZodOptional<ZodNumber>;
benign_transaction_count: ZodOptional<ZodNumber>;
scan_result_entries: ZodOptional<ZodArray<ZodObject<{
csp_id: ...;
tsg_id: ...;
scan_id: ...;
scan_sub_req_id: ...;
api_key_name: ...;
app_name: ...;
tokens: ...;
text_records: ...;
transaction_id: ...;
profile_id: ...;
profile_name: ...;
model_name: ...;
user: ...;
environment: ...;
cloud_provider: ...;
agent_framework: ...;
report_id: ...;
received_ts: ...;
completed_ts: ...;
status: ...;
verdict: ...;
action: ...;
is_prompt: ...;
is_response: ...;
pi_final_verdict: ...;
uf_final_verdict: ...;
dlp_final_verdict: ...;
dbs_final_verdict: ...;
tc_final_verdict: ...;
mc_final_verdict: ...;
agent_final_verdict: ...;
cg_final_verdict: ...;
tg_final_verdict: ...;
prompt_pi_verdict: ...;
prompt_uf_verdict: ...;
prompt_dlp_verdict: ...;
prompt_tc_verdict: ...;
prompt_mc_verdict: ...;
prompt_agent_verdict: ...;
prompt_tg_verdict: ...;
prompt_verdict: ...;
prompt_pi_action: ...;
prompt_uf_action: ...;
prompt_dlp_action: ...;
prompt_tc_action: ...;
prompt_mc_action: ...;
prompt_agent_action: ...;
prompt_tg_action: ...;
response_uf_verdict: ...;
response_dlp_verdict: ...;
response_dbs_verdict: ...;
response_tc_verdict: ...;
response_mc_verdict: ...;
response_agent_verdict: ...;
response_cg_verdict: ...;
response_tg_verdict: ...;
response_uf_action: ...;
response_dlp_action: ...;
response_dbs_action: ...;
response_tc_action: ...;
response_mc_action: ...;
response_agent_action: ...;
response_cg_action: ...;
response_tg_action: ...;
response_verdict: ...;
detection_service_flags: ...;
content_masked: ...;
user_ip: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>;
}, ZodTypeAny, "passthrough">>>;
total_pages: ZodOptional<ZodNumber>;
page_number: ZodOptional<ZodNumber>;
page_size: ZodOptional<ZodNumber>;
page_token: ZodOptional<ZodString>;
revision: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/management/scan-logs.ts:61

Retrieve scan logs by time interval.

Parameters

ParameterTypeDescription
optsScanLogQueryOptionsQuery options including time range, pagination, and filter.

Returns

Promise<objectOutputType<{ scan_result_for_dashboard: ZodOptional<ZodObject<{ text_records_count: ZodOptional<ZodNumber>; api_calls_count: ZodOptional<ZodNumber>; threats_count: ZodOptional<ZodNumber>; all_transactions_count: ZodOptional<ZodNumber>; benign_transaction_count: ZodOptional<ZodNumber>; scan_result_entries: ZodOptional<ZodArray<ZodObject<{ csp_id: ZodString; tsg_id: ZodString; scan_id: ZodString; scan_sub_req_id: ZodNumber; api_key_name: ZodString; app_name: ZodString; tokens: ZodNumber; text_records: ZodNumber; transaction_id: ZodOptional<...>; profile_id: ZodOptional<...>; profile_name: ZodOptional<...>; model_name: ZodOptional<...>; user: ZodOptional<...>; environment: ZodOptional<...>; cloud_provider: ZodOptional<...>; agent_framework: ZodOptional<...>; report_id: ZodOptional<...>; received_ts: ZodOptional<...>; completed_ts: ZodOptional<...>; status: ZodOptional<...>; verdict: ZodOptional<...>; action: ZodOptional<...>; is_prompt: ZodOptional<...>; is_response: ZodOptional<...>; pi_final_verdict: ZodOptional<...>; uf_final_verdict: ZodOptional<...>; dlp_final_verdict: ZodOptional<...>; dbs_final_verdict: ZodOptional<...>; tc_final_verdict: ZodOptional<...>; mc_final_verdict: ZodOptional<...>; agent_final_verdict: ZodOptional<...>; cg_final_verdict: ZodOptional<...>; tg_final_verdict: ZodOptional<...>; prompt_pi_verdict: ZodOptional<...>; prompt_uf_verdict: ZodOptional<...>; prompt_dlp_verdict: ZodOptional<...>; prompt_tc_verdict: ZodOptional<...>; prompt_mc_verdict: ZodOptional<...>; prompt_agent_verdict: ZodOptional<...>; prompt_tg_verdict: ZodOptional<...>; prompt_verdict: ZodOptional<...>; prompt_pi_action: ZodOptional<...>; prompt_uf_action: ZodOptional<...>; prompt_dlp_action: ZodOptional<...>; prompt_tc_action: ZodOptional<...>; prompt_mc_action: ZodOptional<...>; prompt_agent_action: ZodOptional<...>; prompt_tg_action: ZodOptional<...>; response_uf_verdict: ZodOptional<...>; response_dlp_verdict: ZodOptional<...>; response_dbs_verdict: ZodOptional<...>; response_tc_verdict: ZodOptional<...>; response_mc_verdict: ZodOptional<...>; response_agent_verdict: ZodOptional<...>; response_cg_verdict: ZodOptional<...>; response_tg_verdict: ZodOptional<...>; response_uf_action: ZodOptional<...>; response_dlp_action: ZodOptional<...>; response_dbs_action: ZodOptional<...>; response_tc_action: ZodOptional<...>; response_mc_action: ZodOptional<...>; response_agent_action: ZodOptional<...>; response_cg_action: ZodOptional<...>; response_tg_action: ZodOptional<...>; response_verdict: ZodOptional<...>; detection_service_flags: ZodOptional<...>; content_masked: ZodOptional<...>; user_ip: ZodOptional<...>; }, "passthrough", ZodTypeAny, objectOutputType<{ csp_id: ...; tsg_id: ...; scan_id: ...; scan_sub_req_id: ...; api_key_name: ...; app_name: ...; tokens: ...; text_records: ...; transaction_id: ...; profile_id: ...; profile_name: ...; model_name: ...; user: ...; environment: ...; cloud_provider: ...; agent_framework: ...; report_id: ...; received_ts: ...; completed_ts: ...; status: ...; verdict: ...; action: ...; is_prompt: ...; is_response: ...; pi_final_verdict: ...; uf_final_verdict: ...; dlp_final_verdict: ...; dbs_final_verdict: ...; tc_final_verdict: ...; mc_final_verdict: ...; agent_final_verdict: ...; cg_final_verdict: ...; tg_final_verdict: ...; prompt_pi_verdict: ...; prompt_uf_verdict: ...; prompt_dlp_verdict: ...; prompt_tc_verdict: ...; prompt_mc_verdict: ...; prompt_agent_verdict: ...; prompt_tg_verdict: ...; prompt_verdict: ...; prompt_pi_action: ...; prompt_uf_action: ...; prompt_dlp_action: ...; prompt_tc_action: ...; prompt_mc_action: ...; prompt_agent_action: ...; prompt_tg_action: ...; response_uf_verdict: ...; response_dlp_verdict: ...; response_dbs_verdict: ...; response_tc_verdict: ...; response_mc_verdict: ...; response_agent_verdict: ...; response_cg_verdict: ...; response_tg_verdict: ...; response_uf_action: ...; response_dlp_action: ...; response_dbs_action: ...; response_tc_action: ...; response_mc_action: ...; response_agent_action: ...; response_cg_action: ...; response_tg_action: ...; response_verdict: ...; detection_service_flags: ...; content_masked: ...; user_ip: ...; }, ZodTypeAny, "passthrough">, objectInputType<{ csp_id: ...; tsg_id: ...; scan_id: ...; scan_sub_req_id: ...; api_key_name: ...; app_name: ...; tokens: ...; text_records: ...; transaction_id: ...; profile_id: ...; profile_name: ...; model_name: ...; user: ...; environment: ...; cloud_provider: ...; agent_framework: ...; report_id: ...; received_ts: ...; completed_ts: ...; status: ...; verdict: ...; action: ...; is_prompt: ...; is_response: ...; pi_final_verdict: ...; uf_final_verdict: ...; dlp_final_verdict: ...; dbs_final_verdict: ...; tc_final_verdict: ...; mc_final_verdict: ...; agent_final_verdict: ...; cg_final_verdict: ...; tg_final_verdict: ...; prompt_pi_verdict: ...; prompt_uf_verdict: ...; prompt_dlp_verdict: ...; prompt_tc_verdict: ...; prompt_mc_verdict: ...; prompt_agent_verdict: ...; prompt_tg_verdict: ...; prompt_verdict: ...; prompt_pi_action: ...; prompt_uf_action: ...; prompt_dlp_action: ...; prompt_tc_action: ...; prompt_mc_action: ...; prompt_agent_action: ...; prompt_tg_action: ...; response_uf_verdict: ...; response_dlp_verdict: ...; response_dbs_verdict: ...; response_tc_verdict: ...; response_mc_verdict: ...; response_agent_verdict: ...; response_cg_verdict: ...; response_tg_verdict: ...; response_uf_action: ...; response_dlp_action: ...; response_dbs_action: ...; response_tc_action: ...; response_mc_action: ...; response_agent_action: ...; response_cg_action: ...; response_tg_action: ...; response_verdict: ...; detection_service_flags: ...; content_masked: ...; user_ip: ...; }, ZodTypeAny, "passthrough">>, "many">>; }, "passthrough", ZodTypeAny, objectOutputType<{ text_records_count: ZodOptional<ZodNumber>; api_calls_count: ZodOptional<ZodNumber>; threats_count: ZodOptional<ZodNumber>; all_transactions_count: ZodOptional<ZodNumber>; benign_transaction_count: ZodOptional<ZodNumber>; scan_result_entries: ZodOptional<ZodArray<ZodObject<{ csp_id: ...; tsg_id: ...; scan_id: ...; scan_sub_req_id: ...; api_key_name: ...; app_name: ...; tokens: ...; text_records: ...; transaction_id: ...; profile_id: ...; profile_name: ...; model_name: ...; user: ...; environment: ...; cloud_provider: ...; agent_framework: ...; report_id: ...; received_ts: ...; completed_ts: ...; status: ...; verdict: ...; action: ...; is_prompt: ...; is_response: ...; pi_final_verdict: ...; uf_final_verdict: ...; dlp_final_verdict: ...; dbs_final_verdict: ...; tc_final_verdict: ...; mc_final_verdict: ...; agent_final_verdict: ...; cg_final_verdict: ...; tg_final_verdict: ...; prompt_pi_verdict: ...; prompt_uf_verdict: ...; prompt_dlp_verdict: ...; prompt_tc_verdict: ...; prompt_mc_verdict: ...; prompt_agent_verdict: ...; prompt_tg_verdict: ...; prompt_verdict: ...; prompt_pi_action: ...; prompt_uf_action: ...; prompt_dlp_action: ...; prompt_tc_action: ...; prompt_mc_action: ...; prompt_agent_action: ...; prompt_tg_action: ...; response_uf_verdict: ...; response_dlp_verdict: ...; response_dbs_verdict: ...; response_tc_verdict: ...; response_mc_verdict: ...; response_agent_verdict: ...; response_cg_verdict: ...; response_tg_verdict: ...; response_uf_action: ...; response_dlp_action: ...; response_dbs_action: ...; response_tc_action: ...; response_mc_action: ...; response_agent_action: ...; response_cg_action: ...; response_tg_action: ...; response_verdict: ...; detection_service_flags: ...; content_masked: ...; user_ip: ...; }, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>; }, ZodTypeAny, "passthrough">, objectInputType<{ text_records_count: ZodOptional<ZodNumber>; api_calls_count: ZodOptional<ZodNumber>; threats_count: ZodOptional<ZodNumber>; all_transactions_count: ZodOptional<ZodNumber>; benign_transaction_count: ZodOptional<ZodNumber>; scan_result_entries: ZodOptional<ZodArray<ZodObject<{ csp_id: ...; tsg_id: ...; scan_id: ...; scan_sub_req_id: ...; api_key_name: ...; app_name: ...; tokens: ...; text_records: ...; transaction_id: ...; profile_id: ...; profile_name: ...; model_name: ...; user: ...; environment: ...; cloud_provider: ...; agent_framework: ...; report_id: ...; received_ts: ...; completed_ts: ...; status: ...; verdict: ...; action: ...; is_prompt: ...; is_response: ...; pi_final_verdict: ...; uf_final_verdict: ...; dlp_final_verdict: ...; dbs_final_verdict: ...; tc_final_verdict: ...; mc_final_verdict: ...; agent_final_verdict: ...; cg_final_verdict: ...; tg_final_verdict: ...; prompt_pi_verdict: ...; prompt_uf_verdict: ...; prompt_dlp_verdict: ...; prompt_tc_verdict: ...; prompt_mc_verdict: ...; prompt_agent_verdict: ...; prompt_tg_verdict: ...; prompt_verdict: ...; prompt_pi_action: ...; prompt_uf_action: ...; prompt_dlp_action: ...; prompt_tc_action: ...; prompt_mc_action: ...; prompt_agent_action: ...; prompt_tg_action: ...; response_uf_verdict: ...; response_dlp_verdict: ...; response_dbs_verdict: ...; response_tc_verdict: ...; response_mc_verdict: ...; response_agent_verdict: ...; response_cg_verdict: ...; response_tg_verdict: ...; response_uf_action: ...; response_dlp_action: ...; response_dbs_action: ...; response_tc_action: ...; response_mc_action: ...; response_agent_action: ...; response_cg_action: ...; response_tg_action: ...; response_verdict: ...; detection_service_flags: ...; content_masked: ...; user_ip: ...; }, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>, "many">>; }, ZodTypeAny, "passthrough">>>; total_pages: ZodOptional<ZodNumber>; page_number: ZodOptional<ZodNumber>; page_size: ZodOptional<ZodNumber>; page_token: ZodOptional<ZodString>; revision: ZodOptional<ZodNumber>; }, ZodTypeAny, "passthrough">>

Paginated scan results.

Example

import { ManagementClient } from '@cdot65/prisma-airs-sdk';
const mgmt = new ManagementClient(); // reads PANW_MGMT_* env vars

const logs = await mgmt.scanLogs.query({
time_interval: 24,
time_unit: 'hour',
pageNumber: 1,
pageSize: 10,
filter: 'threat',
});
// logs =>
// { total_pages: 1, page_number: 1, page_size: 10, scan_result_for_dashboard: { ... } }