Skip to main content

Variable: DashboardApplicationSchema

const DashboardApplicationSchema: ZodObject<{
id: ZodOptional<ZodNullable<ZodString>>;
name: ZodOptional<ZodNullable<ZodString>>;
cloud: ZodOptional<ZodNullable<ZodString>>;
source: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodNullable<ZodString>>;
updated_at: ZodOptional<ZodNullable<ZodString>>;
profiles: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
token_stats: ZodOptional<ZodNullable<ZodObject<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
session_stats: ZodOptional<ZodNullable<ZodObject<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<ZodNumber>;
high: ZodOptional<ZodNumber>;
medium: ZodOptional<ZodNumber>;
low: ZodOptional<ZodNumber>;
total: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, ZodTypeAny, "passthrough">>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
id: ZodOptional<ZodNullable<ZodString>>;
name: ZodOptional<ZodNullable<ZodString>>;
cloud: ZodOptional<ZodNullable<ZodString>>;
source: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodNullable<ZodString>>;
updated_at: ZodOptional<ZodNullable<ZodString>>;
profiles: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
token_stats: ZodOptional<ZodNullable<ZodObject<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
session_stats: ZodOptional<ZodNullable<ZodObject<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
id: ZodOptional<ZodNullable<ZodString>>;
name: ZodOptional<ZodNullable<ZodString>>;
cloud: ZodOptional<ZodNullable<ZodString>>;
source: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodNullable<ZodString>>;
updated_at: ZodOptional<ZodNullable<ZodString>>;
profiles: ZodOptional<ZodNullable<ZodArray<ZodString, "many">>>;
token_stats: ZodOptional<ZodNullable<ZodObject<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
average_daily_tokens: ZodOptional<ZodNullable<ZodNumber>>;
average_daily_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
monthly_total_tokens: ZodOptional<ZodNullable<ZodNumber>>;
monthly_total_tokens_scale: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
session_stats: ZodOptional<ZodNullable<ZodObject<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ZodOptional<...>;
high: ZodOptional<...>;
medium: ZodOptional<...>;
low: ZodOptional<...>;
total: ZodOptional<...>;
}, "passthrough", ZodTypeAny, objectOutputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">, objectInputType<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, ZodTypeAny, "passthrough">>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
total: ZodOptional<ZodNumber>;
violating: ZodOptional<ZodNumber>;
violation_breakdown: ZodOptional<ZodObject<{
critical: ...;
high: ...;
medium: ...;
low: ...;
total: ...;
}, "passthrough", ZodTypeAny, objectOutputType<..., ..., ...>, objectInputType<..., ..., ...>>>;
last_session_id: ZodOptional<ZodNullable<ZodString>>;
most_recent_session_time: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>>>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/mgmt-dashboard.ts:56

Per-application overview - powers SCM's "API Applications" detail panel (token consumption, sessions, monitoring metadata, attached profiles).

History window is 30 days (the API's max). appname is REQUIRED on the request; omitting it returns an all-null body.