Variable MJAPIKeyUsageLogSchemaConst
MJAPIKeyUsageLogSchema: ZodObject<
{
__mj_CreatedAt: ZodDate;
__mj_UpdatedAt: ZodDate;
APIKey: ZodString;
APIKeyID: ZodString;
Application: ZodNullable<ZodString>;
ApplicationID: ZodNullable<ZodString>;
AuthorizationResult: ZodUnion<
[
ZodLiteral<"Allowed">,
ZodLiteral<"Denied">,
ZodLiteral<"NoScopesRequired">,
],
>;
DeniedReason: ZodNullable<ZodString>;
Endpoint: ZodString;
ID: ZodString;
IPAddress: ZodNullable<ZodString>;
Method: ZodString;
Operation: ZodNullable<ZodString>;
RequestedResource: ZodNullable<ZodString>;
ResponseTimeMs: ZodNullable<ZodNumber>;
ScopesEvaluated: ZodNullable<ZodString>;
StatusCode: ZodNumber;
UserAgent: ZodNullable<ZodString>;
},
"strip",
ZodTypeAny,
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
APIKey?: string;
APIKeyID?: string;
Application?: string;
ApplicationID?: string;
AuthorizationResult?: "Allowed"
| "Denied"
| "NoScopesRequired";
DeniedReason?: string;
Endpoint?: string;
ID?: string;
IPAddress?: string;
Method?: string;
Operation?: string;
RequestedResource?: string;
ResponseTimeMs?: number;
ScopesEvaluated?: string;
StatusCode?: number;
UserAgent?: string;
},
{
__mj_CreatedAt?: Date;
__mj_UpdatedAt?: Date;
APIKey?: string;
APIKeyID?: string;
Application?: string;
ApplicationID?: string;
AuthorizationResult?: "Allowed"
| "Denied"
| "NoScopesRequired";
DeniedReason?: string;
Endpoint?: string;
ID?: string;
IPAddress?: string;
Method?: string;
Operation?: string;
RequestedResource?: string;
ResponseTimeMs?: number;
ScopesEvaluated?: string;
StatusCode?: number;
UserAgent?: string;
},
> = ...
zod schema definition for the entity MJ: API Key Usage Logs