@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 1.89 kB
JavaScript
import{queryFormatted as e,queryString as t}from"./helpers/querystring.mjs";import n from"zod";const r=n.object({id:n.number().meta({description:`The user login ID`,example:1}),userId:n.number().nullable().meta({description:`The ID of the user who logged in`,example:1}),tokenId:n.number().nullable().meta({description:`The ID of the refresh token created during login`,example:123}),authMethod:n.string().meta({description:`The authentication method used`,example:`password`}),ipAddress:n.string().nullable().meta({description:`The IP address from which the login originated`,example:`192.168.1.1`}),userAgent:n.string().nullable().meta({description:`The user agent string from the login request`,example:`Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)`}),createdAt:n.string().nullable().meta({description:`Timestamp when the login occurred`,example:`2024-04-25T14:30:00.000Z`})}),i={getMultiple:{body:void 0,query:{string:n.object({"filter[authMethod]":t.schema.filter(!0,{example:`password`}),"filter[ipAddress]":t.schema.filter(!1,{example:`192.168.1.1`}),"filter[userAgent]":t.schema.filter(!1,{example:`Mozilla/5.0`}),"filter[createdAt]":t.schema.filter(!1,{example:`2026-01-01T00:00:00Z`}),sort:t.schema.sort(`createdAt`),page:t.schema.page,perPage:t.schema.perPage}).meta(t.meta),formatted:n.object({filter:n.object({authMethod:e.schema.filters.union.optional(),ipAddress:e.schema.filters.single.optional(),userAgent:e.schema.filters.single.optional(),createdAt:e.schema.filters.single.optional()}).optional(),filterOr:e.schema.filterOr,sort:n.array(n.object({key:n.enum([`createdAt`]),direction:n.enum([`asc`,`desc`])})).optional(),page:e.schema.page,perPage:e.schema.perPage})},params:n.object({id:n.string().trim().meta({description:`The user ID to fetch logins for`,example:`1`})}),response:n.array(r)}};export{i as controllerSchemas};
//# sourceMappingURL=user-logins.mjs.map